improved SWF support

This commit is contained in:
George Ionita 2017-12-23 05:45:05 +02:00
commit 3cede60f5b
8 changed files with 66 additions and 6 deletions

View file

@ -34,6 +34,20 @@ def test_start_workflow_execution():
"test-domain", "uid-abcd1234", "test-workflow", "v1.0")
wf.should.contain("runId")
@mock_swf_deprecated
def test_signal_workflow_execution():
conn = setup_swf_environment()
hsh = conn.start_workflow_execution(
"test-domain", "uid-abcd1234", "test-workflow", "v1.0")
run_id = hsh["runId"]
wfe = conn.signal_workflow_execution(
"test-domain", "my_signal", "uid-abcd1234", "my_input", run_id)
wfe = conn.describe_workflow_execution(
"test-domain", run_id, "uid-abcd1234")
wfe["openCounts"]["openDecisionTasks"].should.equal(2)
@mock_swf_deprecated
def test_start_already_started_workflow_execution():