Fix the call to start_workflow from events triggers
See Ida361a53ffdb5426a39d276d567391d25261fb7f for a similar fix. Closes-Bug: #1772897 Depends-On: Ifac7617decc2990ff87b76d39bf0f72a61ff2b99 Change-Id: I06304e83e3bc2fd53110daf5c829824d3614b02e
This commit is contained in:
parent
55d350cda4
commit
a7314d2dd4
@ -255,6 +255,7 @@ class DefaultEventEngine(base.EventEngine):
|
||||
self.engine_client.start_workflow(
|
||||
t['workflow_id'],
|
||||
t['workflow_namespace'],
|
||||
None,
|
||||
t['workflow_input'],
|
||||
description=json.dumps(description),
|
||||
**workflow_params
|
||||
|
@ -140,7 +140,10 @@ class EventEngineTest(base.DbTestCase):
|
||||
|
||||
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(
|
||||
{
|
||||
'service': 'fake_publisher',
|
||||
@ -181,7 +184,10 @@ class EventEngineTest(base.DbTestCase):
|
||||
|
||||
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(
|
||||
{
|
||||
'service': 'fake_publisher',
|
||||
|
Loading…
Reference in New Issue
Block a user