diff options
author | James Falcon <TheRealFalcon@users.noreply.github.com> | 2020-11-30 10:20:15 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-30 11:20:15 -0500 |
commit | 2bd34bda9543c1b66f53eaf26706f0de887db187 (patch) | |
tree | f22548313ac2d9c81a38502ed9bf855cebfbc29c /tests/integration_tests/instances.py | |
parent | de3183c1ff4660dda23f2624c1cc24bb76de5bf5 (diff) | |
download | vyos-cloud-init-2bd34bda9543c1b66f53eaf26706f0de887db187.tar.gz vyos-cloud-init-2bd34bda9543c1b66f53eaf26706f0de887db187.zip |
Delete image snapshots created for integration tests (#682)
Integration tests have been leaving behind snapshot images, so now we
clean them up. Also, in testing, found that in Azure, deleting a
resource group will automatically delete the instance, so if
KEEP_INSTANCE is True, we no longer delete the resource group.
Co-authored-by: Daniel Watkins <oddbloke@ubuntu.com>
Diffstat (limited to 'tests/integration_tests/instances.py')
-rw-r--r-- | tests/integration_tests/instances.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/integration_tests/instances.py b/tests/integration_tests/instances.py index 033847b8..8f6573cd 100644 --- a/tests/integration_tests/instances.py +++ b/tests/integration_tests/instances.py @@ -86,9 +86,9 @@ class IntegrationInstance: version = self.execute('cloud-init -v').split()[-1] log.info('Installed cloud-init version: %s', version) self.instance.clean() - image_id = self.snapshot() - log.info('Created new image: %s', image_id) - self.cloud.image_id = image_id + snapshot_id = self.snapshot() + log.info('Created new image: %s', snapshot_id) + self.cloud.snapshot_id = snapshot_id def install_proposed_image(self): log.info('Installing proposed image') |