Wait till execution is success for test_task_type

As a part of blueprint distribute-mistral-operations, we have added changes to run task with RPC. Tasks will be created in IDLE state and RPC request will be created to run tasks.
In test_task_type UT, we are using nested workflow where first task is responsible to start inner workflow, due to above changes first task is created in IDLE state so, we should wait till execution success to assert all the types of tasks getting created for this workbook.

linked-to: https://review.opendev.org/c/openstack/mistral/+/869193/


Change-Id: If8fea6184d45365c20203df945e1b092449225b8
This commit is contained in:
Vasudeo Nimbekar
2023-01-10 12:20:30 +05:30
parent a233752e11
commit 3af5d65d6e

View File

@@ -83,6 +83,7 @@ class TaskTypesTestsV2(base.TestCase):
_, wb_body = self.client.create_workbook('wb_with_nested_wf.yaml')
self.nested_wf_name = 'wb_with_nested_wf.wrapping_wf'
_, execution = self.client.create_execution(self.nested_wf_name)
self.client.wait_execution_success(execution)
@decorators.attr(type='sanity')
@decorators.idempotent_id('1ac726eb-b945-4b82-8755-a2fb2dc009bc')