diff options
author | James Falcon <james.falcon@canonical.com> | 2022-02-02 21:14:52 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-02 21:14:52 -0600 |
commit | b64b7d8ceb0e7bdb7cc9839c238798622c5b9682 (patch) | |
tree | b477b3ffe927f653c417b38a297a16974a4b6aaf /tests/integration_tests/instances.py | |
parent | d72e42c9578459f8cf41a0853028206b4e9c7e3a (diff) | |
download | vyos-cloud-init-b64b7d8ceb0e7bdb7cc9839c238798622c5b9682.tar.gz vyos-cloud-init-b64b7d8ceb0e7bdb7cc9839c238798622c5b9682.zip |
Integration testing docs and refactor (#1231)
* Include CI and Fixtures sections in integration test docs
* Incorporate additional variable annotations
* Remove unnecessary IntegrationInstance subclasses
* Move setup_image teardown into its fixture
Diffstat (limited to 'tests/integration_tests/instances.py')
-rw-r--r-- | tests/integration_tests/instances.py | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/tests/integration_tests/instances.py b/tests/integration_tests/instances.py index 793f729e..e3d597af 100644 --- a/tests/integration_tests/instances.py +++ b/tests/integration_tests/instances.py @@ -47,9 +47,7 @@ class CloudInitSource(Enum): UPGRADE = 6 def installs_new_version(self): - if self.name in [self.NONE.name, self.IN_PLACE.name]: - return False - return True + return self.name not in [self.NONE.name, self.IN_PLACE.name] class IntegrationInstance: @@ -201,23 +199,3 @@ class IntegrationInstance: def __exit__(self, exc_type, exc_val, exc_tb): if not self.settings.KEEP_INSTANCE: self.destroy() - - -class IntegrationEc2Instance(IntegrationInstance): - pass - - -class IntegrationGceInstance(IntegrationInstance): - pass - - -class IntegrationAzureInstance(IntegrationInstance): - pass - - -class IntegrationOciInstance(IntegrationInstance): - pass - - -class IntegrationLxdInstance(IntegrationInstance): - pass |