Fixed functional test test_flavor_traits_based_scheduling as it
would pass 50% of the times even if the required trait was not
taken into account by adding a new part that disables the compute
host that has the required trait and retries, expecting a no valid
host error.
Added functional test test_flavor_forbidden_traits_based_scheduling
to test that forbidden traits are taken into account.
The second test temporarily passes where it should not until the
next commit where the bug is actually fixed.
Change-Id: I1c7e2d5ff2e7b5158f8f2c4b2ebce5c20e99a984
Related-Bug: #1821824
(cherry picked from commit 13e661792d73c27bcc7616b6bf612b5784e994e3)
Reviewed: https:/ /review. openstack. org/649600 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=c97466456f9 a8525074ef78def 44ecb491bfb793
Committed: https:/
Submitter: Zuul
Branch: stable/stein
commit c97466456f9a852 5074ef78def44ec b491bfb793
Author: mb <email address hidden>
Date: Wed Mar 27 01:48:29 2019 +0100
Adding tests to demonstrate bug #1821824
Fixed functional test test_flavor_ traits_ based_schedulin g as it
would pass 50% of the times even if the required trait was not
taken into account by adding a new part that disables the compute
host that has the required trait and retries, expecting a no valid
host error.
Added functional test test_flavor_ forbidden_ traits_ based_schedulin g
to test that forbidden traits are taken into account.
The second test temporarily passes where it should not until the
next commit where the bug is actually fixed.
Change-Id: I1c7e2d5ff2e7b5 158f8f2c4b2ebce 5c20e99a984 bcc7616b6bf612b 5784e994e3)
Related-Bug: #1821824
(cherry picked from commit 13e661792d73c27