modify get task details use the get_object method

according to the api documentation of the mistral module, the uuid of
the task is passed in to get task details

Change-Id: Ifaf744c536081e079fe1fa0b54ffa2d41edb85df
This commit is contained in:
wangzhiguang 2022-06-13 15:57:59 +08:00
parent b4b9348cf8
commit 744246e9ef

View File

@ -55,9 +55,10 @@ class TasksTestsV2(base.TestCase):
resp, body = self.client.get_list_obj('tasks') resp, body = self.client.get_list_obj('tasks')
self.assertEqual(200, resp.status) self.assertEqual(200, resp.status)
self.assertEqual( task_id = body['tasks'][-1]['id']
self.direct_wf_name, body['tasks'][-1]['workflow_name'] resp, body = self.client.get_object('tasks', task_id)
) self.assertEqual(200, resp.status)
self.assertEqual(self.direct_wf_name, body['workflow_name'])
@decorators.attr(type='sanity') @decorators.attr(type='sanity')
@decorators.idempotent_id('3230d694-40fd-4094-ad12-024f40a21b94') @decorators.idempotent_id('3230d694-40fd-4094-ad12-024f40a21b94')