Skip to content

Commit 908b769

Browse files
author
sanjeev
committed
Merge pull request #1078 from pritisarap12/CLOUDSTACK-9066-update-testpath-to-delete-account-after-deleting-VMs-of-that-account
CLOUDSTACK-9066: Update testpath to delete account after deleting VM's of that account In testpath_snapshot_hardning.py testpath account was getting cleared prior to VM's of that account hence while cleaning up the account the VM's in that account also gets deleted hence while clearing VM's it gives exception as "No VM found". * pr/1078: CLOUDSTACK-9066: Update testpath to delete account after deleting VMs of that account Signed-off-by: sanjeev <[email protected]>
2 parents d705d85 + a8e6049 commit 908b769

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/integration/testpaths/testpath_snapshot_hadrning.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,6 @@ def setUpClass(cls):
262262
cls.testdata["account"],
263263
domainid=cls.domain.id
264264
)
265-
cls._cleanup.append(cls.account)
266265

267266
# Create user api client of the account
268267
cls.userapiclient = testClient.getUserApiClient(
@@ -327,6 +326,8 @@ def setUpClass(cls):
327326
mode=cls.zone.networktype
328327
)
329328
cls._cleanup.append(cls.vm_ha)
329+
330+
cls._cleanup.append(cls.account)
330331
cls.root_volume_ha = list_volumes(
331332
cls.userapiclient,
332333
virtualmachineid=cls.vm_ha.id,

0 commit comments

Comments
 (0)