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:
parent
88af8b5666
commit
004b803e10
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue