diff options
author | James Falcon <TheRealFalcon@users.noreply.github.com> | 2021-06-14 21:37:15 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-14 20:37:15 -0600 |
commit | 59a3d84562a0fdeb16a4a566371294790d110ad4 (patch) | |
tree | 5b972cba7bb0da60e4864aee9e9c67d350abdf52 /tests/integration_tests/clouds.py | |
parent | 59a848c5929cbfca45d95860eb60dfebd0786c94 (diff) | |
download | vyos-cloud-init-59a3d84562a0fdeb16a4a566371294790d110ad4.tar.gz vyos-cloud-init-59a3d84562a0fdeb16a4a566371294790d110ad4.zip |
testing: OCI availability domain is now required (SC-59) (#910)
Diffstat (limited to 'tests/integration_tests/clouds.py')
-rw-r--r-- | tests/integration_tests/clouds.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/integration_tests/clouds.py b/tests/integration_tests/clouds.py index 1378b215..4a0d3008 100644 --- a/tests/integration_tests/clouds.py +++ b/tests/integration_tests/clouds.py @@ -247,8 +247,15 @@ class OciCloud(IntegrationCloud): integration_instance_cls = IntegrationOciInstance def _get_cloud_instance(self): + if not integration_settings.ORACLE_AVAILABILITY_DOMAIN: + raise Exception( + 'ORACLE_AVAILABILITY_DOMAIN must be set to a valid ' + 'availability domain. If using the oracle CLI, ' + 'try `oci iam availability-domain list`' + ) return OCI( - tag='oci-integration-test' + tag='oci-integration-test', + availability_domain=integration_settings.ORACLE_AVAILABILITY_DOMAIN ) |