media-insights-on-aws icon indicating copy to clipboard operation
media-insights-on-aws copied to clipboard

Automated integration test for workflow state machine execution failure that immediately terminate the execution

Open aburkleaux-amazon opened this issue 4 years ago • 0 comments

Variations:

  • standard workflow created from Custom Resource as part of stack
  • workflow created from API

Steps:

  1. create workflow

  2. start workflow execution

  3. generate an error to terminate the state machine execution. Examples:

    • abort the execution
    • exceed the history limit
    • exceed the data limit
  4. 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"
    ...
    }
    

aburkleaux-amazon avatar Nov 20 '20 00:11 aburkleaux-amazon