neutron-lib/neutron_lib/tests/unit/api
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
..
definitions ut updates for extending sub-resources 2018-04-04 13:34:55 -06:00
validators Remove periods at the end of validator and converter messages 2018-01-03 13:36:43 +08:00
__init__.py API validators and converters 2016-01-15 12:44:09 +00:00
test_attributes.py Rehome neutron.api.v2.attributes 2017-04-25 11:27:49 -06:00
test_conversions.py Add 'convert_to_string' and apply for firewall-rule 2017-07-21 23:29:40 +09:00
test_extensions.py class methods and sub resources in base api ext 2017-11-16 20:23:50 +00:00
test_faults.py Rehome FAULT_MAP from the neutron API 2017-07-14 11:56:03 +03:00