ovh / venom

🐍 Manage and run your integration tests with efficiency - Venom run executors (script, HTTP Request, web, imap, etc... ) and assertions
Apache License 2.0
1.06k stars 144 forks source link

Need uuid support just randAlphaNum #748

Closed imran-quresh1 closed 3 months ago

imran-quresh1 commented 1 year ago

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 commented 11 months ago

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

imran-quresh1 commented 11 months ago

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

yesnault commented 11 months ago

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

imran-quresh1 commented 11 months ago

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?

yesnault commented 3 months ago

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?

not possible today.

imran-quresh1 commented 3 months ago

happy to contribute if i know where change is needed

On Wed, Aug 14, 2024 at 1:40 PM Yvonnick Esnault @.***> wrote:

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?

not possible today.

— Reply to this email directly, view it on GitHub https://github.com/ovh/venom/issues/748#issuecomment-2288636009, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVGDNF6T4VPJ26BQ6IIAJUTZRNF5TAVCNFSM6AAAAAA7SZCHIGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOBYGYZTMMBQHE . You are receiving this because you authored the thread.Message ID: @.***>

yesnault commented 3 months ago

@ivan-velasco will try to add that (see https://github.com/ovh/cds/pull/6808)