From d1f375f35aa31b744e67b7a6b5fdfa4833b137c1 Mon Sep 17 00:00:00 2001 From: Pearl Dsilva Date: Fri, 24 Sep 2021 13:42:15 +0530 Subject: [PATCH] marvin: Refactor - cleanup of resource after test run (#5505) --- test/integration/smoke/test_snapshots.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/integration/smoke/test_snapshots.py b/test/integration/smoke/test_snapshots.py index 1da90f9416b..4144f118d07 100644 --- a/test/integration/smoke/test_snapshots.py +++ b/test/integration/smoke/test_snapshots.py @@ -97,6 +97,7 @@ class TestSnapshotRootDisk(cloudstackTestCase): mode=cls.services["mode"] ) + cls._cleanup.append(cls.virtual_machine_with_disk) cls._cleanup.append(cls.service_offering) cls._cleanup.append(cls.account) cls._cleanup.append(cls.disk_offering) @@ -251,8 +252,6 @@ class TestSnapshotRootDisk(cloudstackTestCase): ) assert isinstance(clusters,list) and len(clusters)>0 - self.cleanup.append(self.virtual_machine_with_disk) - # Attach created volume to vm, then detach it to be able to migrate it self.virtual_machine_with_disk.stop(self.apiclient) self.virtual_machine_with_disk.attach_volume(