Add the root execution ID to the CLI output
Closes-Bug: 1779713 Change-Id: I5686586a2b39ccc3777dfe7e972152f3e5099f61
This commit is contained in:
@@ -41,6 +41,7 @@ def format(execution=None, lister=False):
|
|||||||
'Workflow namespace',
|
'Workflow namespace',
|
||||||
'Description',
|
'Description',
|
||||||
'Task Execution ID',
|
'Task Execution ID',
|
||||||
|
'Root Execution ID',
|
||||||
'State',
|
'State',
|
||||||
'State info',
|
'State info',
|
||||||
'Created at',
|
'Created at',
|
||||||
@@ -59,6 +60,7 @@ def format(execution=None, lister=False):
|
|||||||
execution.workflow_namespace,
|
execution.workflow_namespace,
|
||||||
execution.description,
|
execution.description,
|
||||||
execution.task_execution_id or '<none>',
|
execution.task_execution_id or '<none>',
|
||||||
|
execution.root_execution_id or '<none>',
|
||||||
execution.state,
|
execution.state,
|
||||||
state_info,
|
state_info,
|
||||||
execution.created_at,
|
execution.created_at,
|
||||||
|
@@ -33,6 +33,7 @@ EXEC = executions.Execution(
|
|||||||
'workflow_id': '123e4567-e89b-12d3-a456-426655440000',
|
'workflow_id': '123e4567-e89b-12d3-a456-426655440000',
|
||||||
'workflow_name': 'some',
|
'workflow_name': 'some',
|
||||||
'workflow_namespace': '',
|
'workflow_namespace': '',
|
||||||
|
'root_execution_id': '',
|
||||||
'description': '',
|
'description': '',
|
||||||
'state': 'RUNNING',
|
'state': 'RUNNING',
|
||||||
'state_info': None,
|
'state_info': None,
|
||||||
@@ -49,6 +50,7 @@ SUB_WF_EXEC = executions.Execution(
|
|||||||
'workflow_id': '123e4567-e89b-12d3-a456-426655440000',
|
'workflow_id': '123e4567-e89b-12d3-a456-426655440000',
|
||||||
'workflow_name': 'some_sub_wf',
|
'workflow_name': 'some_sub_wf',
|
||||||
'workflow_namespace': '',
|
'workflow_namespace': '',
|
||||||
|
'root_execution_id': 'ROOT_EXECUTION_ID',
|
||||||
'description': '',
|
'description': '',
|
||||||
'state': 'RUNNING',
|
'state': 'RUNNING',
|
||||||
'state_info': None,
|
'state_info': None,
|
||||||
@@ -65,6 +67,7 @@ EX_RESULT = (
|
|||||||
'',
|
'',
|
||||||
'',
|
'',
|
||||||
'<none>',
|
'<none>',
|
||||||
|
'<none>',
|
||||||
'RUNNING',
|
'RUNNING',
|
||||||
None,
|
None,
|
||||||
'1',
|
'1',
|
||||||
@@ -78,6 +81,7 @@ SUB_WF_EX_RESULT = (
|
|||||||
'',
|
'',
|
||||||
'',
|
'',
|
||||||
'abc',
|
'abc',
|
||||||
|
'ROOT_EXECUTION_ID',
|
||||||
'RUNNING',
|
'RUNNING',
|
||||||
None,
|
None,
|
||||||
'1',
|
'1',
|
||||||
@@ -159,6 +163,7 @@ class TestCLIExecutionsV2(base.BaseCommandTest):
|
|||||||
'workflow_id': '123e4567-e89b-12d3-a456-426655440000',
|
'workflow_id': '123e4567-e89b-12d3-a456-426655440000',
|
||||||
'workflow_name': 'some',
|
'workflow_name': 'some',
|
||||||
'workflow_namespace': '',
|
'workflow_namespace': '',
|
||||||
|
'root_execution_id': '',
|
||||||
'description': '',
|
'description': '',
|
||||||
'state': state,
|
'state': state,
|
||||||
'state_info': None,
|
'state_info': None,
|
||||||
@@ -169,7 +174,7 @@ class TestCLIExecutionsV2(base.BaseCommandTest):
|
|||||||
)
|
)
|
||||||
|
|
||||||
ex_result = list(EX_RESULT)
|
ex_result = list(EX_RESULT)
|
||||||
ex_result[6] = state
|
ex_result[7] = state
|
||||||
ex_result = tuple(ex_result)
|
ex_result = tuple(ex_result)
|
||||||
|
|
||||||
result = self.call(
|
result = self.call(
|
||||||
|
Reference in New Issue
Block a user