nova/nova/tests/unit/scheduler
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
..
client Switch to using os-resource-classes 2019-02-07 11:11:09 +00:00
filters Use uuidsentinel from oslo.utils 2018-09-05 09:08:54 -05:00
weights Per aggregate scheduling weight 2019-01-21 11:48:44 +08:00
__init__.py move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00
fakes.py Use uuidsentinel from oslo.utils 2018-09-05 09:08:54 -05:00
ironic_fakes.py Use uuidsentinel from oslo.utils 2018-09-05 09:08:54 -05:00
test_filter_scheduler.py Rip out the SchedulerClient 2019-01-16 18:35:26 +00:00
test_filters.py Use uuidsentinel from oslo.utils 2018-09-05 09:08:54 -05:00
test_host_filters.py Modify left filters for RequestSpec 2015-12-11 12:27:20 +01:00
test_host_manager.py Merge "Refactor scatter-gather utility to return exception objects" 2018-11-03 01:08:18 +00:00
test_request_filter.py Use uuidsentinel from oslo.utils 2018-09-05 09:08:54 -05:00
test_rpcapi.py Use long_rpc_timeout in select_destinations RPC call 2018-11-20 09:03:53 -05:00
test_scheduler.py Remove the CachingScheduler 2018-10-18 17:55:36 -04:00
test_scheduler_utils.py Transform compute_task notifications 2018-11-21 16:23:28 +09:00
test_utils.py Merge "Include requested_resources to allocation candidate query" 2019-02-03 00:45:34 +00:00