neutron-lib/neutron_lib/tests
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
..
etc Add Neutron context module and some policy methods 2016-07-30 09:35:01 -04:00
unit ut updates for extending sub-resources 2018-04-04 13:34:55 -06:00
__init__.py Initial cookiecutter commit 2015-11-20 17:24:43 -07:00
_base.py Don't override oslo.db tweaks for connection pool in tests 2018-01-23 12:11:00 -08:00
_post_mortem_debug.py Move some common test and framework goo into neutron-lib 2016-01-29 23:45:49 -07:00
_tools.py Use flake8-import-order plugin 2017-07-05 00:53:13 -07:00