Merge "Add 'created_at' to execution() yaql function"

This commit is contained in:
Jenkins 2017-03-23 16:11:38 +00:00 committed by Gerrit Code Review
commit fbe2b3289a
2 changed files with 7 additions and 1 deletions

View File

@ -313,3 +313,8 @@ class YAQLFunctionsEngineTest(engine_test_base.EngineTestCase):
)
self.assertDictEqual({'param1': 'blablabla'}, execution['params'])
self.assertEqual(
wf_ex.created_at.isoformat(' '),
execution['created_at']
)

View File

@ -108,7 +108,8 @@ def execution_(context):
'name': wf_ex.name,
'spec': wf_ex.spec,
'input': wf_ex.input,
'params': wf_ex.params
'params': wf_ex.params,
'created_at': wf_ex.created_at.isoformat(' ')
}