Add the root execution ID to the CLI output

Closes-Bug: 1779713
Change-Id: I5686586a2b39ccc3777dfe7e972152f3e5099f61
This commit is contained in:
Dougal Matthews
2018-07-02 15:22:04 +01:00
parent 304922c162
commit 2f14711aae
2 changed files with 8 additions and 1 deletions

View File

@@ -41,6 +41,7 @@ def format(execution=None, lister=False):
'Workflow namespace',
'Description',
'Task Execution ID',
'Root Execution ID',
'State',
'State info',
'Created at',
@@ -59,6 +60,7 @@ def format(execution=None, lister=False):
execution.workflow_namespace,
execution.description,
execution.task_execution_id or '<none>',
execution.root_execution_id or '<none>',
execution.state,
state_info,
execution.created_at,

View File

@@ -33,6 +33,7 @@ EXEC = executions.Execution(
'workflow_id': '123e4567-e89b-12d3-a456-426655440000',
'workflow_name': 'some',
'workflow_namespace': '',
'root_execution_id': '',
'description': '',
'state': 'RUNNING',
'state_info': None,
@@ -49,6 +50,7 @@ SUB_WF_EXEC = executions.Execution(
'workflow_id': '123e4567-e89b-12d3-a456-426655440000',
'workflow_name': 'some_sub_wf',
'workflow_namespace': '',
'root_execution_id': 'ROOT_EXECUTION_ID',
'description': '',
'state': 'RUNNING',
'state_info': None,
@@ -65,6 +67,7 @@ EX_RESULT = (
'',
'',
'<none>',
'<none>',
'RUNNING',
None,
'1',
@@ -78,6 +81,7 @@ SUB_WF_EX_RESULT = (
'',
'',
'abc',
'ROOT_EXECUTION_ID',
'RUNNING',
None,
'1',
@@ -159,6 +163,7 @@ class TestCLIExecutionsV2(base.BaseCommandTest):
'workflow_id': '123e4567-e89b-12d3-a456-426655440000',
'workflow_name': 'some',
'workflow_namespace': '',
'root_execution_id': '',
'description': '',
'state': state,
'state_info': None,
@@ -169,7 +174,7 @@ class TestCLIExecutionsV2(base.BaseCommandTest):
)
ex_result = list(EX_RESULT)
ex_result[6] = state
ex_result[7] = state
ex_result = tuple(ex_result)
result = self.call(