tearDownClass and not teardown Include the affinity group in the deletion/cleanup
Signed-off-by: Prasanna Santhanam <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/af9a8de9 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/af9a8de9 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/af9a8de9 Branch: refs/heads/4.2 Commit: af9a8de9019d2759fb121dfd0230b8cfbe1850ea Parents: 296c2f6 Author: Prasanna Santhanam <[email protected]> Authored: Thu Jul 18 15:02:16 2013 +0530 Committer: Prasanna Santhanam <[email protected]> Committed: Thu Jul 18 15:02:16 2013 +0530 ---------------------------------------------------------------------- test/integration/smoke/test_affinity_groups.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/af9a8de9/test/integration/smoke/test_affinity_groups.py ---------------------------------------------------------------------- diff --git a/test/integration/smoke/test_affinity_groups.py b/test/integration/smoke/test_affinity_groups.py index e63b916..db11ada 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:
