Fixed Basic optim tempest test

In this changeset, I made some fixes in order to make the
multinode test pass on the gate.

Change-Id: I2433748a78c87b15893ea69964561955b478eebd
This commit is contained in:
Vincent Françoise
2016-07-21 14:28:45 +02:00
parent 8ab80894c3
commit 107bd0be54
8 changed files with 26 additions and 14 deletions

View File

@@ -142,6 +142,9 @@ class BaseInfraOptimScenarioTest(manager.ScenarioTest):
def has_audit_succeeded(self, audit_uuid):
_, audit = self.client.show_audit(audit_uuid)
if audit.get('state') in ('FAILED', 'CANCELLED'):
raise ValueError()
return audit.get('state') == 'SUCCEEDED'
# ### ACTION PLANS ### #