SFN - fix InvalidARN exception on start_execution (#3007)
This commit is contained in:
parent
2320e82647
commit
93feeec1b7
2 changed files with 23 additions and 2 deletions
|
|
@ -253,6 +253,15 @@ def test_state_machine_throws_error_when_describing_unknown_machine():
|
|||
client.describe_state_machine(stateMachineArn=unknown_state_machine)
|
||||
|
||||
|
||||
@mock_stepfunctions
|
||||
@mock_sts
|
||||
def test_state_machine_throws_error_when_describing_bad_arn():
|
||||
client = boto3.client("stepfunctions", region_name=region)
|
||||
#
|
||||
with assert_raises(ClientError) as exc:
|
||||
client.describe_state_machine(stateMachineArn="bad")
|
||||
|
||||
|
||||
@mock_stepfunctions
|
||||
@mock_sts
|
||||
def test_state_machine_throws_error_when_describing_machine_in_different_account():
|
||||
|
|
@ -362,6 +371,15 @@ def test_state_machine_start_execution():
|
|||
execution["startDate"].should.be.a(datetime)
|
||||
|
||||
|
||||
@mock_stepfunctions
|
||||
@mock_sts
|
||||
def test_state_machine_start_execution_bad_arn_raises_exception():
|
||||
client = boto3.client("stepfunctions", region_name=region)
|
||||
#
|
||||
with assert_raises(ClientError) as exc:
|
||||
client.start_execution(stateMachineArn="bad")
|
||||
|
||||
|
||||
@mock_stepfunctions
|
||||
@mock_sts
|
||||
def test_state_machine_start_execution_with_custom_name():
|
||||
|
|
@ -446,7 +464,7 @@ def test_state_machine_describe_execution():
|
|||
|
||||
@mock_stepfunctions
|
||||
@mock_sts
|
||||
def test_state_machine_throws_error_when_describing_unknown_machine():
|
||||
def test_execution_throws_error_when_describing_unknown_execution():
|
||||
client = boto3.client("stepfunctions", region_name=region)
|
||||
#
|
||||
with assert_raises(ClientError) as exc:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue