Add functional tests for traits-based scheduling
This adds a couple of functional tests for the end-to-end flow of creating a server with a flavor that has a required trait. Each test has two computes. One test covers the case of a successful placement on a compute that has a trait where the other compute doesn't. The other test covers the case that none of the computes have the required trait so the server create request fails. Part of blueprint request-traits-in-nova Change-Id: Iacb9808ef7188e3419abfac9e8c5fb5a46c71c05
This commit is contained in:
parent
9301a57862
commit
dd3a91d7b5
@ -1658,6 +1658,10 @@ class PlacementApiClient(object):
|
||||
def get(self, url, **kwargs):
|
||||
return client.APIResponse(self.fixture._fake_get(None, url, **kwargs))
|
||||
|
||||
def put(self, url, body, **kwargs):
|
||||
return client.APIResponse(
|
||||
self.fixture._fake_put(None, url, body, **kwargs))
|
||||
|
||||
|
||||
class PlacementFixture(fixtures.Fixture):
|
||||
"""A fixture to placement operations.
|
||||
|
Loading…
x
Reference in New Issue
Block a user