terraform-ibm-modules / ibmcloud-terratest-wrapper

Provides a wrapper around Terratest to support writing tests in this GitHub organization
Apache License 2.0
2 stars 4 forks source link

Add support to `TestProjectOptionsDefault` to specify projects region #859

Open ocofaigh opened 2 months ago

ocofaigh commented 2 months ago

Code is currently picking a random region: image

Can we allow user to optionally pick a region which would override the random selection logic?

daniel-butler-irl commented 1 month ago

The region can now be manually set, if omitted it selects a random region. Do you also want to be able to pass a list and randomly select from it?

daniel-butler-irl commented 1 month ago

Its actually called location as this is the projects terminology https://github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper/blob/main/testprojects/test_options.go#L46

ocofaigh commented 1 month ago

@daniel-butler-irl No thats cool - My thought was that if there was a region down or something, we could just lock into one. 99% of the time we let is default to the random