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:
Prasanna Santhanam 2013-07-18 15:02:16 +05:30
parent c0de2c5857
commit 8442e35a79

View File

@ -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: