From 5f9c076261e402b3466e524433f5b4a044a1ab01 Mon Sep 17 00:00:00 2001 From: Eran Kuris Date: Tue, 28 Apr 2020 11:23:10 +0300 Subject: [PATCH] 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 --- neutron_tempest_plugin/api/test_security_groups.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/neutron_tempest_plugin/api/test_security_groups.py b/neutron_tempest_plugin/api/test_security_groups.py index ab02d896..dd1597c9 100644 --- a/neutron_tempest_plugin/api/test_security_groups.py +++ b/neutron_tempest_plugin/api/test_security_groups.py @@ -315,6 +315,12 @@ class SecGroupRulesQuotaTest(BaseSecGroupRulesQuota): 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):