nova/nova/tests/functional/wsgi
Chris Dent 27617ee193 Switch to using os-resource-classes
With the extraction of placement we ended up with resource class names
being duplicated between nova and placement. To address that, the
os-resource-classes library [1] was created to provide a single
authority for standard resource classes and the format of custom
classes.

This patch changes nova to use it, removing the use of the rc_fields
module which used to have the information. A method left in it
(normalize_name) has been moved to utils.py, renamed as
normalize_rc_name, and callers and tests updated accordingly.

Because the placement code is being kept in nova for the time being,
that code's use of rc_fields is maintained, and the module too.
A note is added in the module explain that. Backporting the changes
from extracted-placement to placement-in-nova was considered but
because we no longer have placement tests in nova, that didn't seem
like the right thing to do.

requirements and lower-constraints have been updated.
os-resource-classes is already in global requirements.

For reference the related placement change is at [2].

[1] https://docs.openstack.org/os-resource-classes
[2] https://review.openstack.org/#/c/623556/

Change-Id: I8e579920c0eaca81b563a87429c930b21b3d4dc5
2019-02-07 11:11:09 +00:00
..
__init__.py nova flavor manage functional test 2015-02-20 08:50:44 -05:00
test_flavor_manage.py Remove compatibility code for flavors 2017-09-05 10:36:10 -04:00
test_interfaces.py Use uuidsentinel from oslo.utils 2018-09-05 09:08:54 -05:00
test_secgroup.py Enable global hacking checks and removed local checks 2017-02-10 15:09:37 +01:00
test_servers.py Use external placement in functional tests 2018-12-12 18:46:49 +00:00
test_services.py Switch to using os-resource-classes 2019-02-07 11:11:09 +00:00