mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-7014: Resolving test script related to affinity groups tests
(cherry picked from commit 1cc6317b5e)
This commit is contained in:
parent
843e604757
commit
e9d658e16e
|
|
@ -340,7 +340,7 @@ class TestListAffinityGroups(cloudstackTestCase):
|
|||
try:
|
||||
cls.api_client = super(TestListAffinityGroups, cls).getClsTestClient().getApiClient()
|
||||
#Clean up, terminate the created templates
|
||||
cleanup_resources(cls.api_client, cls.__cleanup)
|
||||
cleanup_resources(cls.api_client, cls._cleanup)
|
||||
except Exception as e:
|
||||
raise Exception("Warning: Exception during cleanup : %s" % e)
|
||||
|
||||
|
|
@ -587,7 +587,7 @@ class TestDeleteAffinityGroups(cloudstackTestCase):
|
|||
try:
|
||||
cls.api_client = super(TestDeleteAffinityGroups, cls).getClsTestClient().getApiClient()
|
||||
#Clean up, terminate the created templates
|
||||
cleanup_resources(cls.api_client, cls.__cleanup)
|
||||
cleanup_resources(cls.api_client, cls._cleanup)
|
||||
except Exception as e:
|
||||
raise Exception("Warning: Exception during cleanup : %s" % e)
|
||||
|
||||
|
|
@ -857,7 +857,7 @@ class TestUpdateVMAffinityGroups(cloudstackTestCase):
|
|||
try:
|
||||
cls.api_client = super(TestUpdateVMAffinityGroups, cls).getClsTestClient().getApiClient()
|
||||
#Clean up, terminate the created templates
|
||||
cleanup_resources(cls.api_client, cls.__cleanup)
|
||||
cleanup_resources(cls.api_client, cls._cleanup)
|
||||
except Exception as e:
|
||||
raise Exception("Warning: Exception during cleanup : %s" % e)
|
||||
|
||||
|
|
@ -1141,7 +1141,7 @@ class TestDeployVMAffinityGroups(cloudstackTestCase):
|
|||
try:
|
||||
cls.api_client = super(TestDeployVMAffinityGroups, cls).getClsTestClient().getApiClient()
|
||||
#Clean up, terminate the created templates
|
||||
cleanup_resources(cls.api_client, cls.__cleanup)
|
||||
cleanup_resources(cls.api_client, cls._cleanup)
|
||||
except Exception as e:
|
||||
raise Exception("Warning: Exception during cleanup : %s" % e)
|
||||
|
||||
|
|
@ -1489,7 +1489,7 @@ class TestAffinityGroupsAdminUser(cloudstackTestCase):
|
|||
try:
|
||||
cls.api_client = super(TestAffinityGroupsAdminUser, cls).getClsTestClient().getApiClient()
|
||||
#Clean up, terminate the created templates
|
||||
cleanup_resources(cls.api_client, cls.__cleanup)
|
||||
cleanup_resources(cls.api_client, cls._cleanup)
|
||||
except Exception as e:
|
||||
raise Exception("Warning: Exception during cleanup : %s" % e)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue