Skip to content

Commit ddfdacf

Browse files
committed
test: fix test failures
1 parent 248bc6c commit ddfdacf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/integration/smoke/test_vm_life_cycle.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1714,7 +1714,8 @@ def get_target_pool(self, vol):
17141714
if target_pools is None or len(target_pools) == 0:
17151715
self.skipTest("Not enough storage pools found for migration")
17161716

1717-
source_pool = list_storage_pools(self.apiclient, id=vol.storageid)[0]
1717+
volume = Volume.list(self.apiclient, id=vol.id)[0]
1718+
source_pool = list_storage_pools(self.apiclient, id=volume.storageid)[0]
17181719
if source_pool.type == 'RBD' and target_pools[0].type == 'RBD':
17191720
self.skipTest("Live VM migration between RBD pools is unsupported")
17201721

test/integration/smoke/test_vm_snapshots.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ def setUpClass(cls):
9494
serviceofferingid=cls.service_offering.id,
9595
mode=cls.zone.networktype
9696
)
97-
cls._cleanup.append(cls.virtual_machine)
9897
volumes = list_volumes(
9998
cls.apiclient,
10099
virtualmachineid=cls.virtual_machine.id,

0 commit comments

Comments
 (0)