mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Automation: Affinity Groups- Removing invalid test case
Signed-off-by: Prasanna Santhanam <tsp@apache.org> (cherry picked from commit ae378940c305fbb1449a1e5d8fdb13abc3a556dc)
This commit is contained in:
parent
37b8775203
commit
a6076818e0
@ -644,30 +644,6 @@ class TestDeleteAffinityGroups(cloudstackTestCase):
|
|||||||
wait_for_cleanup(self.apiclient, ["expunge.delay", "expunge.interval"])
|
wait_for_cleanup(self.apiclient, ["expunge.delay", "expunge.interval"])
|
||||||
aff_1.delete(self.api_client)
|
aff_1.delete(self.api_client)
|
||||||
|
|
||||||
@attr(tags=["simulator", "basic", "advanced", "multihost"])
|
|
||||||
def test_04_delete_aff_grp_with_vms(self):
|
|
||||||
"""
|
|
||||||
Delete Affinity Group which has vms after updating affinity group for vms in it
|
|
||||||
"""
|
|
||||||
|
|
||||||
aff_0 = self.create_aff_grp(aff_grp=self.services["host_anti_affinity"])
|
|
||||||
|
|
||||||
vm1, hostid1 = self.create_vm_in_aff_grps([aff_0.name])
|
|
||||||
vm2, hostid2 = self.create_vm_in_aff_grps([aff_0.name])
|
|
||||||
self.cleanup.extend([vm1, vm2])
|
|
||||||
|
|
||||||
with self.assertRaises(Exception):
|
|
||||||
aff_0.delete(self.api_client)
|
|
||||||
|
|
||||||
vm1.update_affinity_group(self.api_client, affinitygroupnames=[])
|
|
||||||
|
|
||||||
with self.assertRaises(Exception):
|
|
||||||
aff_0.delete(self.api_client)
|
|
||||||
|
|
||||||
vm2.update_affinity_group(self.api_client, affinitygroupnames=[])
|
|
||||||
|
|
||||||
aff_0.delete(self.api_client)
|
|
||||||
|
|
||||||
@attr(tags=["simulator", "basic", "advanced", "multihost"])
|
@attr(tags=["simulator", "basic", "advanced", "multihost"])
|
||||||
def test_05_delete_aff_grp_id(self):
|
def test_05_delete_aff_grp_id(self):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user