media-insights-on-aws
media-insights-on-aws copied to clipboard
Automated integration test for workflow state machine execution failure that immediately terminate the execution
Variations:
- standard workflow created from Custom Resource as part of stack
- workflow created from API
Steps:
-
create workflow
-
start workflow execution
-
generate an error to terminate the state machine execution. Examples:
- abort the execution
- exceed the history limit
- exceed the data limit
-
verify the termination is handled by checking the status and message in the workflow_execution object. The expected result will look like this:
{ ... "Status": "Error", "Message": "Caught Step Function Execution Status Change error event for execution: arn:aws:states:us-west-2:526662735483:execution:CasVideoWorkflow-17iux2:CasVideoWorkflow39dae95e-8b72-48bf-b1a8-065fae6467e8 status:TIMED_OUT" ... }