Skip to content

Commit 6e8653b

Browse files
committed
export CAPO_REGION env variable
Signed-off-by: MatthieuFin <[email protected]>
1 parent 902e688 commit 6e8653b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/e2e/shared/suite.go

+4
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,10 @@ func AllNodesBeforeSuite(e2eCtx *E2EContext, data []byte) {
201201
SetEnvVar("OPENSTACK_CLOUD_YAML_B64", getEncodedOpenStackCloudYAML(openStackCloudYAMLFile), true)
202202
SetEnvVar("OPENSTACK_CLOUD_PROVIDER_CONF_B64", getEncodedOpenStackCloudProviderConf(openStackCloudYAMLFile, openStackCloud), true)
203203
SetEnvVar("OPENSTACK_SSH_KEY_NAME", DefaultSSHKeyPairName, false)
204+
clouds := getParsedOpenStackCloudYAML(openStackCloudYAMLFile)
205+
cloud, ok := clouds.Clouds[openStackCloud]
206+
Expect(ok).To(BeTrue())
207+
SetEnvVar("CAPO_REGION", cloud.RegionName, false)
204208
}
205209

206210
// AllNodesAfterSuite is cleanup that runs on all ginkgo parallel nodes after the test suite finishes.

0 commit comments

Comments
 (0)