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.
Reviewed: https:/ /review. openstack. org/648653 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=c088856c8c0 8f0ab0746db7c12 0da494c9dd42d4
Committed: https:/
Submitter: Zuul
Branch: master
commit c088856c8c08f0a b0746db7c120da4 94c9dd42d4
Author: mb <email address hidden>
Date: Fri Mar 29 10:20:58 2019 +0100
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 from_request_ spec function.
to test that a single forbidden trait doesn't get lost in the
resources_
Also updated the functional test flavor_ forbidden_ traits_ based_schedulin g to do the right thing.
test_
Change-Id: I491b10c9c202ba ae4a37034848147 f910a50eebf
Closes-Bug: #1821824