From 093135473e2b4794da413e1a7a76cb2d921bd89c Mon Sep 17 00:00:00 2001 From: Daan Hoogland Date: Tue, 9 Feb 2021 14:45:29 +0000 Subject: [PATCH] fix tags on test --- test/integration/smoke/test_usage_events.py | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/test/integration/smoke/test_usage_events.py b/test/integration/smoke/test_usage_events.py index 0c08fecdc69..abd54ae9b64 100644 --- a/test/integration/smoke/test_usage_events.py +++ b/test/integration/smoke/test_usage_events.py @@ -63,10 +63,7 @@ class TestUsageEvents(cloudstackTestCase): @classmethod def tearDownClass(cls): - try: - cleanup_resources(cls.apiclient, cls._cleanup) - except Exception as e: - raise Exception("Warning: Exception during cleanup : %s" % e) + super(TestUsageEvents,self).tearDownClass() def setUp(self): self.apiclient = self.testClient.getApiClient() @@ -81,13 +78,9 @@ class TestUsageEvents(cloudstackTestCase): self.cleanup.append(self.account) def tearDown(self): - try: - cleanup_resources(self.apiclient, self.cleanup) - except Exception as e: - raise Exception("Warning: Exception during cleanup : %s" % e) - return + super(TestUsageEvents,self).tearDown() - @attr(tags=["advanced, basic"], required_hardware="true") + @attr(tags=["advanced", "basic"], required_hardware="true") def test_01_positive_tests_usage(self): """ Check events in usage_events table when VM creation fails