Skip to content

Commit b497598

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

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
@@ -3,6 +3,7 @@
33

44
from botocore.exceptions import ClientError
55

6+
from integration.config.service_names import LAYERS
67
from integration.config.service_names import REST_API
78
from integration.helpers.base_test import LOG, BaseTest
89
from integration.helpers.common_api import get_function_versions
@@ -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)