mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
tearDownClass and not teardown
Include the affinity group in the deletion/cleanup Signed-off-by: Prasanna Santhanam <tsp@apache.org> (cherry picked from commit af9a8de9019d2759fb121dfd0230b8cfbe1850ea)
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…
x
Reference in New Issue
Block a user