Handle WorkflowExecution/WorkflowType options inheritance

... and potential resulting DefaultUndefinedFault errors.
This commit is contained in:
Jean-Baptiste Barth 2015-10-04 11:09:18 +02:00
commit 3ce5b29356
5 changed files with 119 additions and 21 deletions

View file

@ -15,7 +15,12 @@ from moto.swf.exceptions import (
def setup_swf_environment():
conn = boto.connect_swf("the_key", "the_secret")
conn.register_domain("test-domain", "60", description="A test domain")
conn.register_workflow_type("test-domain", "test-workflow", "v1.0")
conn.register_workflow_type(
"test-domain", "test-workflow", "v1.0",
task_list="queue", default_child_policy="TERMINATE",
default_execution_start_to_close_timeout="300",
default_task_start_to_close_timeout="300",
)
conn.register_activity_type("test-domain", "test-activity", "v1.1")
return conn