Skip to content

Commit 0c7143e

Browse files
author
Vandita Patidar
committed
Skipping test if Layers is not available
1 parent 3ed5efe commit 0c7143e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

integration/combination/test_function_with_alias.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
from botocore.exceptions import ClientError
55

6-
from integration.config.service_names import REST_API
6+
from integration.config.service_names import LAYERS, REST_API
77
from integration.helpers.base_test import LOG, BaseTest
88
from integration.helpers.common_api import get_function_versions
99
from integration.helpers.resource import current_region_does_not_support
@@ -160,6 +160,7 @@ def test_alias_with_event_sources_get_correct_permissions(self):
160160
function_policy = json.loads(function_policy_str)
161161
self.assertEqual(len(function_policy["Statement"]), len(permission_resources))
162162

163+
@skipIf(current_region_does_not_support([LAYERS]), "Layers is not supported in this testing region")
163164
def test_function_with_alias_and_layer_version(self):
164165
self.create_and_verify_stack("combination/function_with_alias_all_properties_and_layer_version")
165166
alias_name = "Live"

0 commit comments

Comments
 (0)