Add SWF endpoint GetWorkflowExecutionHistory and associated HistoryEvent model
This commit is contained in:
parent
3ce5b29356
commit
464aef293c
8 changed files with 173 additions and 11 deletions
24
tests/test_swf/utils.py
Normal file
24
tests/test_swf/utils.py
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
from moto.swf.models import (
|
||||
WorkflowType,
|
||||
)
|
||||
|
||||
|
||||
# A generic test WorkflowType
|
||||
def _generic_workflow_type_attributes():
|
||||
return [
|
||||
"test-workflow", "v1.0"
|
||||
], {
|
||||
"task_list": "queue",
|
||||
"default_child_policy": "ABANDON",
|
||||
"default_execution_start_to_close_timeout": "300",
|
||||
"default_task_start_to_close_timeout": "300",
|
||||
}
|
||||
|
||||
def get_basic_workflow_type():
|
||||
args, kwargs = _generic_workflow_type_attributes()
|
||||
return WorkflowType(*args, **kwargs)
|
||||
|
||||
def mock_basic_workflow_type(domain_name, conn):
|
||||
args, kwargs = _generic_workflow_type_attributes()
|
||||
conn.register_workflow_type(domain_name, *args, **kwargs)
|
||||
return conn
|
||||
Loading…
Add table
Add a link
Reference in a new issue