Add test_case for layer per stack

Add a new test case for creating a layer with the same name under a different stack.
This commit is contained in:
Loukas Leontopoulos 2017-09-25 14:31:29 +03:00 committed by GitHub
parent 1bcd61dc36
commit 7599fd5dc0

View File

@ -24,6 +24,22 @@ def test_create_layer_response():
Name="TestLayer",
Shortname="TestLayerShortName"
)
response.should.contain("LayerId")
second_stack_id = client.create_stack(
Name="test_stack_2",
Region="us-east-1",
ServiceRoleArn="service_arn",
DefaultInstanceProfileArn="profile_arn"
)['StackId']
response = client.create_layer(
StackId=second_stack_id,
Type="custom",
Name="TestLayer",
Shortname="TestLayerShortName"
)
response.should.contain("LayerId")