Merge "Adding root_execution_id to the jinja executor function"

This commit is contained in:
Zuul 2019-05-07 09:29:18 +00:00 committed by Gerrit Code Review
commit 8e59d27ba1
2 changed files with 7 additions and 4 deletions

View File

@ -216,7 +216,7 @@ class JinjaEvaluatorTest(base.BaseTest):
'type': task.type,
'workflow_execution_id': task.workflow_execution_id,
'created_at': task.created_at.isoformat(' '),
'updated_at': task.updated_at.isoformat(' ')
'updated_at': task.updated_at.isoformat(' '),
}, result)
@mock.patch('mistral.db.v2.api.get_task_executions')
@ -320,7 +320,8 @@ class JinjaEvaluatorTest(base.BaseTest):
'input': wf_ex.input,
'params': wf_ex.params,
'created_at': wf_ex.created_at.isoformat(' '),
'updated_at': wf_ex.updated_at.isoformat(' ')
'updated_at': wf_ex.updated_at.isoformat(' '),
'root_execution_id': wf_ex.root_execution_id
}, result)
def test_executions(self):
@ -458,7 +459,8 @@ class JinjaEvaluatorTest(base.BaseTest):
'input': wf_ex.input,
'params': wf_ex.params,
'created_at': wf_ex.created_at.isoformat(' '),
'updated_at': wf_ex.updated_at.isoformat(' ')
'updated_at': wf_ex.updated_at.isoformat(' '),
'root_execution_id': wf_ex.root_execution_id
}, result)

View File

@ -181,7 +181,8 @@ def execution_(context):
'input': wf_ex.input,
'params': wf_ex.params,
'created_at': wf_ex.created_at.isoformat(' '),
'updated_at': wf_ex.updated_at.isoformat(' ')
'updated_at': wf_ex.updated_at.isoformat(' '),
'root_execution_id': wf_ex.root_execution_id
}