neutron-lib/neutron_lib/tests/unit/api/definitions
Boden R 36bb16b941 ut updates for extending sub-resources
When extending an existing sub-resource definition, the
SUB_RESOURCE_ATTRIBUTE_MAP must define the extended resources/attributes
under the 'parameters' object. This instructs the API internals to
update the existing sub-resource's attribute map rather than just
overwrite it. For internals see the logic in the extend_resources()
method in neutron.api.extensions [1]. For example the
qos_bw_limit_direction in neutron uses this approach for its
BANDWIDTH_LIMIT_RULES definition (also see related lib commit
I823f567ddf9c895eb3cf94e95ae34a382d67f51d).

This patch adds that support to the base api def test case and also
updates the contributor internals to document such. No release note
included since nothing changed from a consumption perspective.

[1] https://github.com/openstack/neutron/blob/master/neutron/api/extensions.py#L350

Change-Id: Ib91004490dc3ca71b7caafe5cc3cb07417be1e4c
2018-04-04 13:34:55 -06:00
..
__init__.py Introduce API definition for trunk/trunk_details extensions 2016-10-19 05:26:19 +00:00
base.py ut updates for extending sub-resources 2018-04-04 13:34:55 -06:00
ip_allocation.py rehome ip allocation extension API definition 2017-08-31 04:45:05 -06:00
test__dummy.py Add dummy API definitions for extension subresources 2017-01-11 15:11:31 -08:00
test_address_scope.py rehome neutron's address-scope extension API definition 2017-07-17 07:27:58 -06:00
test_agent.py rehome neutron's agent extension API definition 2017-07-13 11:50:40 -06:00
test_allowedaddresspairs.py rehome allowedaddresspairs API definition 2017-08-07 09:56:38 -06:00
test_auto_allocated_topology.py rehome neutron's auto-allocated-topology extension API definition 2017-07-17 13:50:15 -06:00
test_availability_zone.py rehome availability zone API def 2017-08-04 10:51:43 -06:00
test_bgpvpn.py Add empty BGPVPN Route Target to unit test 2017-11-07 09:09:25 +01:00
test_bgpvpn_routes_control.py bgpvpn-routes-control extension 2017-06-14 16:19:34 +00:00
test_bgpvpn_vni.py bgpvpn-vni api extension 2017-09-25 12:13:30 +05:30
test_data_plane_status.py API definition and reference for data plane status extension 2017-03-07 23:15:08 +00:00
test_default_subnetpools.py rehome default subnet pools API def 2017-08-07 07:35:37 -06:00
test_dhcpagentscheduler.py rehome dhcpagentscheduler api def 2017-11-28 05:57:51 -07:00
test_dns.py Rehome dns-integration extension 2017-06-16 13:14:56 +09:00
test_dns_domain_ports.py Remove unnecessary variables in UT 2017-07-13 14:28:36 +09:00
test_dvr.py rehome dvr extension api def 2017-09-12 22:34:32 +00:00
test_external_net.py rehome external net api definition 2017-08-14 10:05:42 -06:00
test_extra_dhcp_opt.py rehome extra_dhcp_opt api-def 2017-04-25 08:43:00 -06:00
test_extraroute.py rehome extraroute api definition 2017-08-15 04:36:38 -06:00
test_fip64.py Add FIP64 extension from networking-midonet 2017-02-06 09:09:38 +09:00
test_firewall.py Migrate neutron-fwaas API definitions to neutron-lib 2017-01-12 22:23:51 +00:00
test_firewall_v2.py rehome shared constant 2018-01-16 15:10:54 -07:00
test_firewallrouterinsertion.py Migrate neutron-fwaas API definitions to neutron-lib 2017-01-12 22:23:51 +00:00
test_flavors.py rehome flavor extension API definition 2017-09-18 05:14:30 -06:00
test_ip_substring_port_filtering.py Change name of test file 2018-02-08 11:11:11 -05:00
test_l2_adjancency.py rehome l2 adjacency extension API definition 2017-08-15 15:19:45 -06:00
test_l3.py Rehome l3 API definitions into neutron-lib 2017-01-13 13:57:15 -07:00
test_l3_ext_gw_mode.py rehome l3 ext gw mode extension api definition 2017-08-29 10:25:34 -06:00
test_l3_ext_ha_mode.py rehome l3 ext ha mode extension api definition 2017-09-07 10:23:24 -06:00
test_l3_flavors.py rehome l3 flavors extension api definition 2017-09-11 08:43:46 -06:00
test_logging.py Introduce logging api extension 2017-07-03 13:33:11 +07:00
test_logging_resource.py Migrate logging-resource extension from networking-midonet 2017-02-06 09:09:38 +09:00
test_metering.py rehome metering extension api definition 2017-08-16 13:26:33 -06:00
test_multiprovidernet.py rehome multi provider net extension api definition 2017-11-02 10:27:46 -06:00
test_network.py rehome core resource api-defs 2017-04-17 13:51:14 -06:00
test_network_availability_zone.py rehome network availability zone extension api definition 2017-08-24 10:25:10 -06:00
test_network_ip_availability.py rehome network ip availability extension api definition 2017-08-17 11:42:20 -06:00
test_network_mtu.py Moved net-mtu extension definition 2017-07-13 10:59:41 -07:00
test_network_mtu_writable.py Rehome net-mtu-enh extension definition 2017-08-31 13:43:54 -07:00
test_pagination.py rehome pagination api definition 2017-08-17 13:11:22 -06:00
test_port.py rehome core resource api-defs 2017-04-17 13:51:14 -06:00
test_port_security.py Remove unnecessary variables in UT 2017-07-13 14:28:36 +09:00
test_portbindings.py Rehome portbindings api-def into neutron-lib 2017-01-13 14:00:55 -07:00
test_portbindings_extended.py Introduce API for port bindings extended 2017-07-27 10:36:29 +00:00
test_project_id.py rehome project id api definition 2017-08-24 10:27:15 -06:00
test_provider_net.py Rehome providernet api-def 2017-01-13 14:02:51 -07:00
test_qos.py rehome qos api definition 2017-08-24 10:22:00 -06:00
test_qos_default.py rehome the qos default api def 2017-11-22 12:56:00 -07:00
test_qos_rule_type_details.py rehome the qos rule type details api def 2018-01-08 06:49:29 -07:00
test_revisionifmatch.py rehome revisionifmatch api def 2018-01-16 17:06:10 +00:00
test_router_availability_zone.py rehome router availability zone extension api def 2017-08-18 13:31:31 -06:00
test_router_interface_fip.py Add router-interface-fip extension from networking-midonet 2017-02-06 09:09:38 +09:00
test_routerservicetype.py rehome router service type api def 2018-01-08 06:51:11 -07:00
test_segment.py rehome segement api def 2018-01-12 09:09:33 -07:00
test_servicetype.py rehome service type api def 2017-12-06 13:47:55 -07:00
test_sorting.py rehome sorting api def 2018-01-08 06:45:51 -07:00
test_subnet.py rehome core resource api-defs 2017-04-17 13:51:14 -06:00
test_subnet_onboard.py Add API Definition for Subnet Onboard 2017-08-17 07:51:50 +00:00
test_subnet_segmentid_writable.py Subnet segment_id writable extension 2018-03-13 14:43:31 +01:00
test_subnetpool.py rehome core resource api-defs 2017-04-17 13:51:14 -06:00
test_trunk.py Introduce API definition for trunk/trunk_details extensions 2016-10-19 05:26:19 +00:00
test_trunk_details.py Add dummy API definitions for extension subresources 2017-01-11 15:11:31 -08:00
test_vlantransparent.py rehome vlantransparent api def 2017-12-05 09:53:11 -07:00
test_vpn.py Migrate neutron-vpnaas API definitions to neutron-lib 2018-01-26 09:14:42 +08:00
test_vpn_endpoint_groups.py Migrate neutron-vpnaas API definitions to neutron-lib 2018-01-26 09:14:42 +08:00
test_vpn_flavors.py Migrate neutron-vpnaas API definitions to neutron-lib 2018-01-26 09:14:42 +08:00