neutron/neutron/tests/fullstack
Rodolfo Alonso Hernandez ff607c3f22
Check "security_group_rule" quota during security group creation
The tracked resources quota check is done at the beginning of an API
call to the Neutron server. The API call contains a resource and an
action over the resource. In case of creation, the server checks if
the number of items requested fits in the existing quota.

In case of security group creation, the tracked resource checked is
"security_group". But "SecurityGroupDbMixin.create_security_group"
method also creates several default rules for the new group and the
quota for "security_group_rule" is not enforced.

This patch checks the number of security group rules being created
("delta") and checks in the plugin method (not in the API method) if
there is enough room for those new rules (tracked resource
"security_group_rule").

Change-Id: I0a9b91b09d6260ff96fdba2f0a455de53bbc1f00
Closes-Bug: #1858680
(cherry picked from commit 936bd67aa4)
2020-04-24 11:45:27 +02:00
..
agents Avoid fullstack QoS tests to handle other test ports 2019-04-16 16:11:20 +00:00
resources Check "security_group_rule" quota during security group creation 2020-04-24 11:45:27 +02:00
README Moved fullstack test doc content to TESTING.rst 2015-12-03 17:02:54 -05:00
__init__.py Avoid eventlet monkey patching for the tempest plugin 2016-04-29 22:47:24 -05:00
base.py Randomize BaseFullStackTestCase._find_available_ips 2020-01-31 12:52:22 +00:00
test_agent_bandwidth_report.py sriov-agent: fullstack test resource info report 2018-10-26 08:14:46 +00:00
test_connectivity.py Disable IPv6 forwarding by default on HA routers 2018-05-31 20:19:21 +00:00
test_dhcp_agent.py Increase waiting time for network rescheduling 2020-04-07 20:18:59 +00:00
test_firewall.py fullstack: Migration from iptables_hybrid to openvswitch 2018-04-26 16:44:24 +00:00
test_l3_agent.py Check the namespace is ready in test_mtu_update tests 2019-09-13 09:35:01 +00:00
test_logging.py Follow-up: add fullstack test for logging 2018-09-06 14:59:10 +07:00
test_mtu.py Check mtu on network update 2020-01-07 14:31:31 +00:00
test_port_shut_down.py [OVS] Shut down the port on changing the admin-state to false 2018-01-04 01:44:01 -05:00
test_ports_rebind.py Make port binding attempt after agent is revived 2018-10-22 18:43:33 +02:00
test_qos.py TestMinBwQoSOvs must call the correct methods 2019-11-13 17:35:01 +00:00
test_securitygroup.py Check "security_group_rule" quota during security group creation 2020-04-24 11:45:27 +02:00
test_trunk.py Fullstack: init trunk agent's driver only when necessary 2017-11-03 16:49:12 +00:00
utils.py fullstack: Remove ovsdb_interface config opt 2017-09-27 07:03:17 +00:00

README

Please see neutron/TESTING.rst.