Merge "[fwaas]Disassociate all ports before deleting firewall group"

This commit is contained in:
Zuul 2023-06-06 23:34:07 +00:00 committed by Gerrit Code Review
commit 25e91da472
1 changed files with 4 additions and 1 deletions

View File

@ -336,7 +336,10 @@ class FWaaSv2ExtensionTestJSON(v2_base.BaseFWaaSTest):
ports=[intf_2['port_id']])
updated_fwg = body["firewall_group"]
self.assertEqual([intf_2['port_id']], updated_fwg['ports'])
# Wait for the firewall resource to become ready
self._wait_until_ready(fwg_id)
# Disassociate all ports with this firewall group
self.firewall_groups_client.update_firewall_group(fwg_id, ports=[])
# Delete firewall_group
self.firewall_groups_client.delete_firewall_group(fwg_id)