neutron/neutron/tests/unit/extensions
Brian Haley 97f6e2569e Use dict .get() to avoid a KeyError in the segment plugin
On subnet delete, the supplied subnet in the post hook
could contain a subnet without certain items, leading to
a KeyError in the segment plugin.  Fix a number of these
occurences so this cannot happen.

Also fixed similar code in the segment tests.

Change-Id: I645610febde446b78ed6edd868e699673648a4de
Closes-bug: #1868724
(cherry picked from commit 07b015d789)
(cherry picked from commit b019821abd)
2020-09-04 13:09:13 +00:00
..
__init__.py Empty files should not contain copyright or license 2014-10-20 00:50:32 +00:00
base.py remove _setUpExtension 2018-09-17 12:51:51 +00:00
extendedattribute.py Use ExtensionDescriptor from neutron-lib 2016-12-02 14:16:06 -05:00
extensionattribute.py Use ExtensionDescriptor from neutron-lib 2016-12-02 14:16:06 -05:00
foxinsocks.py Fix all pep8 E265 errors 2018-04-30 16:35:52 -04:00
test_address_scope.py use payloads for all SUBNETPOOL_ADDRESS_SCOPE events 2019-01-30 14:32:08 -07:00
test_agent.py cleanup unit test usage of api extension maps 2017-10-24 10:38:52 -06:00
test_availability_zone.py Adjust filters on listing availability zones 2018-06-29 19:15:29 +00:00
test_data_plane_status.py remove the neutron.db._resource_extend module 2019-01-02 13:02:06 -07:00
test_default_subnetpools.py Use constant IP_VERSION_4/6 in unit tests 2018-08-27 21:45:39 +00:00
test_dns.py Use constant IP_VERSION_4/6 in unit tests 2018-08-27 21:45:39 +00:00
test_expose_port_forwarding_in_fip.py Add dependency for service plugin 2019-02-16 00:17:53 +08:00
test_external_net.py use external net api def from lib 2017-10-30 11:16:33 -06:00
test_extra_dhcp_opt.py Use constant IP_VERSION_4/6 in unit tests 2018-08-27 21:45:39 +00:00
test_extraroute.py Add test cases: invalidate CIDR 2019-01-25 10:50:43 +08:00
test_fip_port_details.py Use extension fip-port-details from neutron-lib 2018-05-07 15:01:58 +00:00
test_flavors.py use context manager from neutron-lib 2018-10-24 07:18:46 -06:00
test_floating_ip_port_forwarding.py Add dependency for service plugin 2019-02-16 00:17:53 +08:00
test_floatingip_pools.py Introduce floating IP pool resource 2018-10-04 15:53:53 +00:00
test_l3.py Fix validation of IPv6 subnets with external RAs 2020-08-05 07:25:14 +00:00
test_l3_ext_gw_mode.py Update neutron files for new over-indentation hacking rule (E117) 2019-01-29 15:36:20 -05:00
test_network_ip_availability.py Use constant IP_VERSION_4/6 in unit tests 2018-08-27 21:45:39 +00:00
test_network_segment_range.py Fix resource schemas and releated `get_sorts` test cases 2020-01-31 17:30:08 +00:00
test_portsecurity.py Fix port can not be created with the sg of other project 2020-08-21 00:12:14 -04:00
test_providernet.py pecan.jsonify v1.3 adjustment 2018-04-18 15:37:20 +00:00
test_qos_fip.py remove neutron.common.exceptions 2019-02-01 14:35:00 -07:00
test_qos_gateway_ip.py [L3][QoS] Neutron server side router gateway IP QoS 2018-12-01 17:45:46 +08:00
test_quotasv2.py remove neutron.common.exceptions 2019-02-01 14:35:00 -07:00
test_quotasv2_detail.py use core resource api defs from lib 2017-11-08 09:48:50 -07:00
test_router_availability_zone.py use l3 api def from neutron-lib 2017-12-15 07:03:14 -07:00
test_securitygroup.py Fix port can not be created with the sg of other project 2020-08-21 00:12:14 -04:00
test_segment.py Use dict .get() to avoid a KeyError in the segment plugin 2020-09-04 13:09:13 +00:00
test_servicetype.py Select service_provider on the basis of service_module 2018-04-28 17:30:21 +09:00
test_subnet_onboard.py Enable adoption of subnets into a subnet pool 2019-02-26 11:13:09 -06:00
test_subnet_service_types.py Renamed subnet_service_type_db_models module 2018-04-12 15:41:08 -07:00
test_timestamp.py Fix all pep8 E265 errors 2018-04-30 16:35:52 -04:00
test_uplink_status_propagation.py remove the neutron.db._resource_extend module 2019-01-02 13:02:06 -07:00
test_vlantransparent.py use vlantransparent api def from neutron-lib 2018-02-20 07:43:03 +00:00
v2attributes.py Use ExtensionDescriptor from neutron-lib 2016-12-02 14:16:06 -05:00