~rakhmerov/python-mistralclient/master

« back to all changes in this revision

Viewing changes to mistralclient/tests/unit/v2/test_cli_executions.py

  • Committer: Dougal Matthews
  • Date: 2018-07-09 10:52:41 UTC
  • Revision ID: git-v1:2f14711aae93841481456d889c8d7c9f88111722
Add the root execution ID to the CLI output

Closes-Bug: 1779713
Change-Id: I5686586a2b39ccc3777dfe7e972152f3e5099f61

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
        'workflow_id': '123e4567-e89b-12d3-a456-426655440000',
34
34
        'workflow_name': 'some',
35
35
        'workflow_namespace': '',
 
36
        'root_execution_id': '',
36
37
        'description': '',
37
38
        'state': 'RUNNING',
38
39
        'state_info': None,
49
50
        'workflow_id': '123e4567-e89b-12d3-a456-426655440000',
50
51
        'workflow_name': 'some_sub_wf',
51
52
        'workflow_namespace': '',
 
53
        'root_execution_id': 'ROOT_EXECUTION_ID',
52
54
        'description': '',
53
55
        'state': 'RUNNING',
54
56
        'state_info': None,
65
67
    '',
66
68
    '',
67
69
    '<none>',
 
70
    '<none>',
68
71
    'RUNNING',
69
72
    None,
70
73
    '1',
78
81
    '',
79
82
    '',
80
83
    'abc',
 
84
    'ROOT_EXECUTION_ID',
81
85
    'RUNNING',
82
86
    None,
83
87
    '1',
159
163
                    'workflow_id': '123e4567-e89b-12d3-a456-426655440000',
160
164
                    'workflow_name': 'some',
161
165
                    'workflow_namespace': '',
 
166
                    'root_execution_id': '',
162
167
                    'description': '',
163
168
                    'state': state,
164
169
                    'state_info': None,
169
174
            )
170
175
 
171
176
            ex_result = list(EX_RESULT)
172
 
            ex_result[6] = state
 
177
            ex_result[7] = state
173
178
            ex_result = tuple(ex_result)
174
179
 
175
180
            result = self.call(