summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJames Falcon <TheRealFalcon@users.noreply.github.com>2021-01-22 09:25:38 -0600
committerGitHub <noreply@github.com>2021-01-22 09:25:38 -0600
commit1527efa740ce7e66d9506ea62b0b8010d71a4104 (patch)
treec0f791ebb2a111d3edc507b720f5e06f66f8c69f /tests
parent2d0b63681ca411a606b7d4f4d316320395d30e82 (diff)
downloadvyos-cloud-init-1527efa740ce7e66d9506ea62b0b8010d71a4104.tar.gz
vyos-cloud-init-1527efa740ce7e66d9506ea62b0b8010d71a4104.zip
Use more cloud defaults in integration tests (#757)
Stop requiring compartment_id for OCI and project_id for GCE since they can now be inferred in pycloudlib.
Diffstat (limited to 'tests')
-rw-r--r--tests/integration_tests/clouds.py6
-rw-r--r--tests/integration_tests/integration_settings.py18
2 files changed, 1 insertions, 23 deletions
diff --git a/tests/integration_tests/clouds.py b/tests/integration_tests/clouds.py
index fc0a61d5..63240d17 100644
--- a/tests/integration_tests/clouds.py
+++ b/tests/integration_tests/clouds.py
@@ -216,9 +216,6 @@ class GceCloud(IntegrationCloud):
def _get_cloud_instance(self):
return GCE(
tag='gce-integration-test',
- project=self.settings.GCE_PROJECT,
- region=self.settings.GCE_REGION,
- zone=self.settings.GCE_ZONE,
)
@@ -246,8 +243,7 @@ class OciCloud(IntegrationCloud):
def _get_cloud_instance(self):
return OCI(
- tag='oci-integration-test',
- compartment_id=self.settings.OCI_COMPARTMENT_ID
+ tag='oci-integration-test'
)
diff --git a/tests/integration_tests/integration_settings.py b/tests/integration_tests/integration_settings.py
index 6cabf3d8..22b4fdda 100644
--- a/tests/integration_tests/integration_settings.py
+++ b/tests/integration_tests/integration_settings.py
@@ -88,24 +88,6 @@ PUBLIC_SSH_KEY = None
KEYPAIR_NAME = None
##################################################################
-# GCE SPECIFIC SETTINGS
-##################################################################
-# Required for GCE
-GCE_PROJECT = None
-
-# You probably want to override these
-GCE_REGION = 'us-central1'
-GCE_ZONE = 'a'
-
-##################################################################
-# OCI SPECIFIC SETTINGS
-##################################################################
-# Compartment-id found at
-# https://console.us-phoenix-1.oraclecloud.com/a/identity/compartments
-# Required for Oracle
-OCI_COMPARTMENT_ID = None
-
-##################################################################
# USER SETTINGS OVERRIDES
##################################################################
# Bring in any user-file defined settings