nova/nova/tests/unit/scheduler
mb 6f07f76902 Fix bug preventing forbidden traits from working
Modifies _clean_empties function to take forbidden traits into account
in addition to required traits.

Added unit test test_resources_from_request_spec_flavor_forbidden_trait
to test that a single forbidden trait doesn't get lost in the
resources_from_request_spec function.

Also updated the functional test
test_flavor_forbidden_traits_based_scheduling to do the right thing.

NOTE: test_utils needed a tweak in this (rocky) cherry-pick to reference
RequestGroup from placement/lib since objects.RequestGroup wasn't
introduced until stein [1].

[1] I46c97d2641d9685ef59771314665a17a5236097d

Change-Id: I491b10c9c202baae4a37034848147f910a50eebf
Closes-Bug: #1821824
(cherry picked from commit c088856c8c)
(cherry picked from commit 6a5be4ae25)
2019-04-03 11:44:16 -05:00
..
client ironic: Report resources as reserved when needed 2018-07-24 15:16:15 -04:00
filters scheduler: Start utilizing RequestSpec.network_metadata 2018-07-24 15:05:07 -04:00
weights Change deprecated policies to policy 2018-07-27 02:20:30 +00:00
__init__.py move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00
fakes.py Don't filter out sibling sets with one core 2018-01-30 10:09:59 +00:00
ironic_fakes.py Set IronicNodeState.uuid in _update_from_compute_node 2017-07-25 17:52:47 -04:00
test_caching_scheduler.py Use nova.db.api directly 2018-07-10 14:56:27 +00:00
test_chance_scheduler.py Modify select_destinations() to return objects and alts 2017-12-07 15:01:13 +00:00
test_client.py Use long_rpc_timeout in select_destinations RPC call 2018-11-26 12:52:39 -05:00
test_filter_scheduler.py Fix WeighedHost logging regression 2019-03-06 13:48:30 +00:00
test_filters.py Fix invalid uuid warnings 2016-05-10 09:04:37 +00:00
test_host_filters.py Modify left filters for RequestSpec 2015-12-11 12:27:20 +01:00
test_host_manager.py Revert "Make host_aggregate_map dictionary case-insensitive" 2018-09-25 19:08:15 -04:00
test_request_filter.py Honor availability_zone hint via placement 2018-05-22 08:56:50 -07:00
test_rpcapi.py Use long_rpc_timeout in select_destinations RPC call 2018-11-26 12:52:39 -05:00
test_scheduler.py Only run placement request filters when Placement will be called 2018-06-04 07:33:24 +00:00
test_scheduler_utils.py Make scheduler.utils.setup_instance_group query all cells 2018-09-05 16:32:42 +00:00
test_utils.py Fix bug preventing forbidden traits from working 2019-04-03 11:44:16 -05:00