Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need uuid support just randAlphaNum #748

Open
imran-quresh1 opened this issue Nov 20, 2023 · 4 comments
Open

Need uuid support just randAlphaNum #748

imran-quresh1 opened this issue Nov 20, 2023 · 4 comments

Comments

@imran-quresh1
Copy link

imran-quresh1 commented Nov 20, 2023

Can we add a support for creating a uuid so it can be used where uuid is required?
If it is already there apologies as i am not able to find it.

At present a hack is '{{randAlphaNum 8}}-{{randAlphaNum 4}}-{{randAlphaNum 4}}-{{randAlphaNum 4}}-{{randAlphaNum 12}}'

@ivan-velasco
Copy link
Contributor

@yesnault Where do these functions get added? Cannot seem to find them.

@imran-quresh1
Copy link
Author

I am happy to contribute by adding this functionality if i know where to add.

@yesnault
Copy link
Member

yesnault commented Jan 2, 2024

it's here: https://github.com/ovh/cds/blob/master/sdk/interpolate/interpolate_helper.go#L47C19-L47C35

@imran-quresh1
Copy link
Author

I can see UUID here https://github.com/ovh/cds/blob/master/sdk/uuid.go
but how do we use it in venom e2e test file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants