Use murano client for getting final status of environment
- Use murano client in get_final_status function in tests. - This change fix congress/mistral integration gate. Change-Id: I9ca2946cedb0b80a9be66fca50a124aa2c6434f1 Closes-Bug: #1525874
This commit is contained in:
parent
2a88aee169
commit
9ddcf693e8
@ -129,8 +129,8 @@ class DeployTestMixin(zip_utils.ZipUtilsMixin):
|
|||||||
cls.murano_client().sessions.deploy(environment.id, session.id)
|
cls.murano_client().sessions.deploy(environment.id, session.id)
|
||||||
return environment
|
return environment
|
||||||
|
|
||||||
@staticmethod
|
@classmethod
|
||||||
def wait_for_final_status(environment, timeout=300):
|
def wait_for_final_status(cls, environment, timeout=300):
|
||||||
"""Function for wait final status of environment.
|
"""Function for wait final status of environment.
|
||||||
|
|
||||||
:param environment: Murano environment.
|
:param environment: Murano environment.
|
||||||
@ -147,9 +147,9 @@ class DeployTestMixin(zip_utils.ZipUtilsMixin):
|
|||||||
raise RuntimeError(err_msg)
|
raise RuntimeError(err_msg)
|
||||||
time.sleep(5)
|
time.sleep(5)
|
||||||
status = environment.manager.get(environment.id).status
|
status = environment.manager.get(environment.id).status
|
||||||
dep = environment.manager.api.deployments.list(environment.id)
|
dep = cls.murano_client().deployments.list(environment.id)
|
||||||
reports = environment.manager.api.deployments.reports(environment.id,
|
reports = cls.murano_client().deployments.reports(environment.id,
|
||||||
dep[0].id)
|
dep[0].id)
|
||||||
return status, ", ".join([r.text for r in reports])
|
return status, ", ".join([r.text for r in reports])
|
||||||
|
|
||||||
# -----------------------------Reports methods---------------------------------
|
# -----------------------------Reports methods---------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user