From 2bd34bda9543c1b66f53eaf26706f0de887db187 Mon Sep 17 00:00:00 2001 From: James Falcon Date: Mon, 30 Nov 2020 10:20:15 -0600 Subject: 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 --- tests/integration_tests/instances.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/integration_tests/instances.py') 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') -- cgit v1.2.3