mirror of https://github.com/apache/cloudstack.git
tearDownClass and not teardown
Include the affinity group in the deletion/cleanup
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
(cherry picked from commit af9a8de901)
This commit is contained in:
parent
c0de2c5857
commit
8442e35a79
|
|
@ -103,6 +103,7 @@ class TestDeployVmWithAffinityGroup(cloudstackTestCase):
|
|||
|
||||
cls._cleanup = [
|
||||
cls.service_offering,
|
||||
cls.ag,
|
||||
cls.account,
|
||||
]
|
||||
return
|
||||
|
|
@ -185,9 +186,8 @@ class TestDeployVmWithAffinityGroup(cloudstackTestCase):
|
|||
|
||||
|
||||
@classmethod
|
||||
def tearDown(cls):
|
||||
def tearDownClass(cls):
|
||||
try:
|
||||
#cls.api_client = super(TestDeployVmWithAffinityGroup, cls).getClsTestClient().getApiClient()
|
||||
#Clean up, terminate the created templates
|
||||
cleanup_resources(cls.api_client, cls._cleanup)
|
||||
except Exception as e:
|
||||
|
|
|
|||
Loading…
Reference in New Issue