Skip to content

Commit 0604983

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

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

integration/combination/test_function_with_alias.py

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from botocore.exceptions import ClientError
55

66
from integration.config.service_names import REST_API
7+
from integration.config.service_names import LAYERS
78
from integration.helpers.base_test import LOG, BaseTest
89
from integration.helpers.common_api import get_function_versions
910
from integration.helpers.resource import current_region_does_not_support
@@ -160,6 +161,7 @@ def test_alias_with_event_sources_get_correct_permissions(self):
160161
function_policy = json.loads(function_policy_str)
161162
self.assertEqual(len(function_policy["Statement"]), len(permission_resources))
162163

164+
@skipIf(current_region_does_not_support([LAYERS]), "Layers is not supported in this testing region")
163165
def test_function_with_alias_and_layer_version(self):
164166
self.create_and_verify_stack("combination/function_with_alias_all_properties_and_layer_version")
165167
alias_name = "Live"

0 commit comments

Comments
 (0)