Merge "Fix SecGroupQuotaTest in case of unlimited quota" into mcp/epoxy
diff --git a/neutron_tempest_plugin/api/test_security_groups.py b/neutron_tempest_plugin/api/test_security_groups.py
index 37cd80b..85a51f3 100644
--- a/neutron_tempest_plugin/api/test_security_groups.py
+++ b/neutron_tempest_plugin/api/test_security_groups.py
@@ -256,6 +256,9 @@
def _create_max_allowed_sg_amount(self):
sg_amount = self._get_sg_amount()
sg_quota = self._get_sg_quota()
+ if sg_quota == -1:
+ self._set_sg_quota(sg_amount + 1)
+ sg_quota = self._get_sg_quota()
sg_to_create = sg_quota - sg_amount
self._create_security_groups(sg_to_create)