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 | |
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')
-rw-r--r-- | tests/integration_tests/clouds.py | 9 | ||||
-rw-r--r-- | tests/integration_tests/integration_settings.py | 7 |
2 files changed, 15 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 ) diff --git a/tests/integration_tests/integration_settings.py b/tests/integration_tests/integration_settings.py index 0703be58..e4a790c2 100644 --- a/tests/integration_tests/integration_settings.py +++ b/tests/integration_tests/integration_settings.py @@ -98,6 +98,13 @@ KEYPAIR_NAME = None OPENSTACK_NETWORK = None ################################################################## +# OCI SETTINGS +################################################################## +# Availability domain to use for Oracle. Should be one of the namess found +# in `oci iam availability-domain list` +ORACLE_AVAILABILITY_DOMAIN = None + +################################################################## # USER SETTINGS OVERRIDES ################################################################## # Bring in any user-file defined settings |