neutron/neutron/tests/unit/extensions
John Davidge 6123d20766 Fix port update for service subnets
Updating a port's fixed_ips will currently fail for a subnet that has
a service type, regardless of whether the port has a matching
device_owner. This is because _update_ips_for_port in
ipam_pluggable_backend.py does not take the device_owner into account
when calling _ipam_get_subnets.

This patch fixes the bug by passing the port's device_owner to
_ipam_get_subnets in _update_ips_for_port, and includes a new unit
test to prevent future regressions.

Change-Id: I09ac773ae27eebe104d5c39e1e8863c02880f85d
Closes-Bug: #1660607
(cherry picked from commit b61b630f0b)
2017-03-10 16:31:11 +01: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 Classes lack metaclass decoration 2016-05-05 13:31:15 -06:00
test_address_scope.py Use constants from neutron-lib 2016-04-23 21:23:56 -04:00
test_agent.py Neutron-lib: use the L3_AGENT* definitions from neutron-lib 2016-08-01 06:50:11 -07:00
test_availability_zone.py tests: stop using ml2 plugin full import paths in tests 2016-07-27 10:40:22 +00:00
test_default_subnetpools.py Remove deprecated default subnetpools 2016-08-02 11:25:12 +01:00
test_dns.py Fix deprecation warnings 2016-08-26 22:16:06 -04:00
test_external_net.py Use constants from neutron-lib 2016-04-23 21:23:56 -04:00
test_extra_dhcp_opt.py Fix params order in assertEqual 2016-02-03 11:54:29 +05:30
test_extraroute.py Ensure unit tests don't assume an IP address allocation strategy 2016-05-17 09:50:25 -07:00
test_flavors.py Accept and return project_id for API calls 2016-09-12 19:23:53 +00:00
test_l3.py Check for unbound ports in L3 RPC handler 2017-01-18 15:44:55 +00:00
test_l3_ext_gw_mode.py Delete gw port on exceptions 2016-07-11 06:07:03 -07:00
test_netmtu.py Calculate MTU on every network fetch instead of on create 2016-07-20 13:26:50 +02:00
test_network_ip_availability.py Fix deprecation warnings 2016-08-26 22:16:06 -04:00
test_portsecurity.py Use converters and validators from neutron-lib 2016-04-24 19:13:10 -04:00
test_providernet.py Accept and return project_id for API calls 2016-09-12 19:23:53 +00:00
test_quotasv2.py tests: stop using ml2 plugin full import paths in tests 2016-07-27 10:40:22 +00:00
test_router_availability_zone.py Make service plugins' get_plugin_type classmethods 2016-06-07 15:33:07 -05:00
test_securitygroup.py Bulk creation of SecurityGroups 2017-02-25 06:58:19 +00:00
test_segment.py Only do deferred ip allocation on deferred ports 2016-09-12 16:14:54 -06:00
test_servicetype.py Add method to get service provider names by resources 2016-05-12 07:40:45 -07:00
test_subnet_service_types.py Fix port update for service subnets 2017-03-10 16:31:11 +01:00
test_tag.py Add filter for resource tag 2016-03-01 20:47:12 +00:00
test_timestamp.py Include timezone in timestamp fields 2016-09-16 11:19:12 -07: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