Some scenario tests do not delete network resources
The ScenarioTest class does not destroy isolated creds upon tearDown.
As several scenarios create network resources through the class
tempest.common.IsolatedCreds, a missing cleanup results in network
resources not being removed.
Change-Id: Id0a0c196b5780888cf71e1f0cfae0931f854ef43
diff --git a/tempest/scenario/manager.py b/tempest/scenario/manager.py
index f7db79d..187dabb 100644
--- a/tempest/scenario/manager.py
+++ b/tempest/scenario/manager.py
@@ -94,6 +94,13 @@
cls.network_client = cls.manager.network_client
@classmethod
+ def tearDownClass(cls):
+ # Isolated creds also manages network resources, which should
+ # be cleaned up at the end of the test case
+ cls.isolated_creds.clear_isolated_creds()
+ super(ScenarioTest, cls).tearDownClass()
+
+ @classmethod
def _get_credentials(cls, get_creds, ctype):
if CONF.compute.allow_tenant_isolation:
creds = get_creds()