neutron-lib/neutron_lib/tests/unit
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
..
api ut updates for extending sub-resources 2018-04-04 13:34:55 -06:00
callbacks Add sanity check to receives decorator 2017-06-14 05:12:58 -07:00
clients Add new Resource Provider functions to placement client 2018-02-26 20:18:40 +01:00
db rehome used db utils 2018-03-28 13:24:47 -06:00
exceptions add exceptions package 2017-02-13 12:34:04 -07:00
hacking Fix N536 - Use assertIsNone regex 2017-07-13 21:27:35 -04:00
legacy Move some common test and framework goo into neutron-lib 2016-01-29 23:45:49 -07:00
plugins rehome create functions from plugin utils 2018-03-20 07:48:36 -06:00
services rehome qos service DriverBase class 2017-06-13 09:06:33 -06:00
utils net_utils: Speed up mac address generation 2017-10-13 13:32:42 +02:00
__init__.py Adding callback mechanism 2015-12-18 19:05:15 +00:00
test__policy.py Revisit exported policy module 2017-01-12 11:41:53 -08:00
test_context.py Add interface to add a constraint to context 2017-07-14 13:42:34 -07:00
test_fixture.py Rehome placement client to neutron-lib 2018-01-03 10:12:08 +00:00
test_neutron_lib.py Removes unnecessary utf-8 encoding 2016-12-28 17:08:10 +07:00
test_worker.py rehome NeutronWorker class 2017-03-15 09:47:18 -06:00