Merge "Fix the call to start_workflow from events triggers"
This commit is contained in:
commit
13b2b0fbaf
@ -255,6 +255,7 @@ class DefaultEventEngine(base.EventEngine):
|
|||||||
self.engine_client.start_workflow(
|
self.engine_client.start_workflow(
|
||||||
t['workflow_id'],
|
t['workflow_id'],
|
||||||
t['workflow_namespace'],
|
t['workflow_namespace'],
|
||||||
|
None,
|
||||||
t['workflow_input'],
|
t['workflow_input'],
|
||||||
description=json.dumps(description),
|
description=json.dumps(description),
|
||||||
**workflow_params
|
**workflow_params
|
||||||
|
@ -140,7 +140,10 @@ class EventEngineTest(base.DbTestCase):
|
|||||||
|
|
||||||
args, kwargs = client_mock.start_workflow.call_args
|
args, kwargs = client_mock.start_workflow.call_args
|
||||||
|
|
||||||
self.assertEqual((EVENT_TRIGGER['workflow_id'], '', {}), args)
|
self.assertEqual(
|
||||||
|
(EVENT_TRIGGER['workflow_id'], '', None, {}),
|
||||||
|
args
|
||||||
|
)
|
||||||
self.assertDictEqual(
|
self.assertDictEqual(
|
||||||
{
|
{
|
||||||
'service': 'fake_publisher',
|
'service': 'fake_publisher',
|
||||||
@ -181,7 +184,10 @@ class EventEngineTest(base.DbTestCase):
|
|||||||
|
|
||||||
args, kwargs = client_mock.start_workflow.call_args
|
args, kwargs = client_mock.start_workflow.call_args
|
||||||
|
|
||||||
self.assertEqual((EVENT_TRIGGER['workflow_id'], '', {}), args)
|
self.assertEqual(
|
||||||
|
(EVENT_TRIGGER['workflow_id'], '', None, {}),
|
||||||
|
args
|
||||||
|
)
|
||||||
self.assertDictEqual(
|
self.assertDictEqual(
|
||||||
{
|
{
|
||||||
'service': 'fake_publisher',
|
'service': 'fake_publisher',
|
||||||
|
Loading…
Reference in New Issue
Block a user