Use nova client to erase sec groups

Add usage of nova client to erase created security groups

Change-Id: I51f25f890a167007f715ea774ac6a2346c0acbd6
Closes-Bug: 1447596
This commit is contained in:
Tatyana Leontovich 2015-04-24 13:05:41 +03:00 committed by tatyana-leontovich
parent 88af8b5666
commit 004b803e10
1 changed files with 9 additions and 0 deletions

View File

@ -141,6 +141,15 @@ class NeutronBaseTest(fuel_health.nmanager.NovaNetworkScenarioTest):
cls.error_msg.append(exc)
LOG.debug(traceback.format_exc())
try:
sec_groups = cls.compute_client.security_groups.list()
[cls.compute_client.security_groups.delete(group)
for group in sec_groups
if 'ost1_test-secgroup-smoke' in group.name]
except Exception as exc:
cls.error_msg.append(exc)
LOG.debug(traceback.format_exc())
@classmethod
def tearDownClass(cls):
super(NeutronBaseTest, cls)