From 7599fd5dc00d54c80d29bcfab368ca5b40a78b05 Mon Sep 17 00:00:00 2001 From: Loukas Leontopoulos Date: Mon, 25 Sep 2017 14:31:29 +0300 Subject: [PATCH] Add test_case for layer per stack Add a new test case for creating a layer with the same name under a different stack. --- tests/test_opsworks/test_layers.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tests/test_opsworks/test_layers.py b/tests/test_opsworks/test_layers.py index 31fdeae8c..4bfdd5a67 100644 --- a/tests/test_opsworks/test_layers.py +++ b/tests/test_opsworks/test_layers.py @@ -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")