neutron/neutron/tests/unit/extensions
Sreekumar S 93d719a554 SG protocol validation to allow numbers or names
SG rule protocol provided is validated against the DB rules'
protocols for both number and name. The filter provided to DB
is modified so that it is queried for records with both the
protocol name and number, instead of exactly the type provided
with the input. The returned DB rule record's protocol field is
validated against the supplied SG protocol field for both name
or number.
This way, user is still allowed to enter protocol name or number
to create a rule, and API compatibility is maintained.

Closes-Bug: #1215181
(cherry picked from commit 913a64cc11)

Also squashed the following regression fix:

===

Don't drop 'protocol' from client supplied security_group_rule dict

If protocol was present in the dict, but was None, then it was never
re-instantiated after being popped out of the dict. This later resulted
in KeyError when trying to access the key on the dict.

Change-Id: I4985e7b54117bee3241d7365cb438197a09b9b86
Closes-Bug: #1566327
(cherry picked from commit 5a41caa47a)

===

Change-Id: If4ad684e961433b8d9d3ec8fe2810585d3f6a093
2016-04-06 14:29:54 +02:00
..
__init__.py Empty files should not contain copyright or license 2014-10-20 00:50:32 +00:00
base.py Fix params order in assertEqual 2016-02-03 11:54:29 +05:30
extendedattribute.py Remove get_namespace from API extensions 2015-06-15 09:17:32 -04:00
extensionattribute.py Introduce usage data tracking for Neutron 2015-07-28 11:55:03 -07:00
foxinsocks.py Simplify extension processing 2015-09-30 15:29:06 +09:00
test_address_scope.py Correlate address scope with network 2016-02-22 22:46:18 -05:00
test_agent.py BGP Dynamic Routing: introduce BgpDrScheduler model 2016-02-12 14:17:57 +05:30
test_availability_zone.py ML2: Call _dict_extend in create_(net|port) ops 2016-02-06 09:50:38 +00:00
test_bgp_dragentscheduler.py BGP Dynamic Routing: introduce BgpDrScheduler model 2016-02-12 14:17:57 +05:30
test_default_subnetpools.py Add use_default_subnetpool to subnet create requests 2016-02-23 20:53:43 -07:00
test_dns.py Stops update_network handling updates it shouldn't 2016-03-11 11:57:19 -06:00
test_external_net.py Use network RBAC feature for external access 2016-02-29 19:05:26 -08:00
test_extra_dhcp_opt.py Fix params order in assertEqual 2016-02-03 11:54:29 +05:30
test_extraroute.py Fix the context passed to get_subnets in _validate_routes 2016-03-11 00:39:32 +00:00
test_flavors.py Fix Neutron flavor framework 2015-11-19 11:27:05 -08:00
test_l3.py Only clear dns_name when user specifies parameter 2016-03-08 22:52:57 +00:00
test_l3_ext_gw_mode.py Fix params order in assertEqual 2016-02-03 11:54:29 +05:30
test_netmtu.py Merge "Fix params order in assertEqual" 2016-02-05 07:44:36 +00:00
test_network_ip_availability.py Add API extension for reporting IP availability usage statistics 2016-02-29 05:31:48 +00:00
test_portsecurity.py Fix params order in assertEqual 2016-02-03 11:54:29 +05:30
test_providernet.py Fix params order in assertEqual 2016-02-03 11:54:29 +05:30
test_quotasv2.py Removed a pile of debtcollector removals from neutron.context 2015-10-06 18:28:40 +02:00
test_router_availability_zone.py Add availability_zone support for router 2015-12-04 12:32:42 +09:00
test_securitygroup.py SG protocol validation to allow numbers or names 2016-04-06 14:29:54 +02:00
test_servicetype.py Fix params order in assertEqual 2016-01-13 18:24:04 +05:30
test_tag.py Add filter for resource tag 2016-03-01 20:47:12 +00:00
test_timestamp_core.py Fix PUT tag failure 2016-03-11 17:38:03 +00:00
test_vlantransparent.py Remove transparent VLAN support from base plugin 2015-11-28 06:07:23 -08:00
v2attributes.py Simplify extension processing 2015-09-30 15:29:06 +09:00