Added new API test_sg_rules_quota_decrease_less_than_created.
The test is checking that its possible to decrease
Security group rules quota less than already created.
Change-Id: I6a170a153038380d2fe5632afcab47b1cdba5f6c
diff --git a/neutron_tempest_plugin/api/test_security_groups.py b/neutron_tempest_plugin/api/test_security_groups.py
index ab02d89..dd1597c 100644
--- a/neutron_tempest_plugin/api/test_security_groups.py
+++ b/neutron_tempest_plugin/api/test_security_groups.py
@@ -315,6 +315,12 @@
new_sg_rules_amount = self._get_sg_rules_amount()
self.assertGreater(new_sg_rules_amount, sg_rules_amount)
+ @decorators.idempotent_id('3fc39bd6-3132-4e6f-a09c-456fb18d600c')
+ def test_sg_rules_quota_decrease_less_than_created(self):
+ self._create_max_allowed_sg_rules_amount()
+ new_quota = self._decrease_sg_rules_quota()
+ self.assertEqual(self._get_sg_rules_quota(), new_quota)
+
class SecGroupProtocolTest(base.BaseNetworkTest):