From 8442e35a79907b5a317dca08e885bdebf43ea90d Mon Sep 17 00:00:00 2001 From: Prasanna Santhanam Date: Thu, 18 Jul 2013 15:02:16 +0530 Subject: [PATCH] tearDownClass and not teardown Include the affinity group in the deletion/cleanup Signed-off-by: Prasanna Santhanam (cherry picked from commit af9a8de9019d2759fb121dfd0230b8cfbe1850ea) --- test/integration/smoke/test_affinity_groups.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/integration/smoke/test_affinity_groups.py b/test/integration/smoke/test_affinity_groups.py index e63b91672c6..db11adabe16 100644 --- a/test/integration/smoke/test_affinity_groups.py +++ b/test/integration/smoke/test_affinity_groups.py @@ -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: