From 0c7143ea2fd2762be91cb7ddd4a6cbef3754ca6e Mon Sep 17 00:00:00 2001 From: Vandita Patidar Date: Thu, 27 Feb 2025 16:11:42 -0800 Subject: [PATCH] Skipping test if Layers is not available --- integration/combination/test_function_with_alias.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/integration/combination/test_function_with_alias.py b/integration/combination/test_function_with_alias.py index 792f377a10..eddbb529aa 100644 --- a/integration/combination/test_function_with_alias.py +++ b/integration/combination/test_function_with_alias.py @@ -3,7 +3,7 @@ from botocore.exceptions import ClientError -from integration.config.service_names import REST_API +from integration.config.service_names import LAYERS, REST_API from integration.helpers.base_test import LOG, BaseTest from integration.helpers.common_api import get_function_versions from integration.helpers.resource import current_region_does_not_support @@ -160,6 +160,7 @@ def test_alias_with_event_sources_get_correct_permissions(self): function_policy = json.loads(function_policy_str) self.assertEqual(len(function_policy["Statement"]), len(permission_resources)) + @skipIf(current_region_does_not_support([LAYERS]), "Layers is not supported in this testing region") def test_function_with_alias_and_layer_version(self): self.create_and_verify_stack("combination/function_with_alias_all_properties_and_layer_version") alias_name = "Live"