diff --git a/integration/config/service_names.py b/integration/config/service_names.py index 7177d4436..6f975d846 100644 --- a/integration/config/service_names.py +++ b/integration/config/service_names.py @@ -39,3 +39,4 @@ SNS_FILTER_POLICY_SCOPE = "SnsFilterPolicyScope" LOGS = "Logs" EVENT_RULE_WITH_EVENT_BUS = "EventRuleWithEventBus" +SECURITY_POLICY_REST_API = "RestApiTlsPolicy" diff --git a/integration/single/test_api_with_custom_domain_security_policy.py b/integration/single/test_api_with_custom_domain_security_policy.py index e71e4c9f9..6bb571689 100644 --- a/integration/single/test_api_with_custom_domain_security_policy.py +++ b/integration/single/test_api_with_custom_domain_security_policy.py @@ -1,14 +1,14 @@ from unittest.case import skipIf -from integration.config.service_names import CUSTOM_DOMAIN +from integration.config.service_names import CUSTOM_DOMAIN, SECURITY_POLICY_REST_API from integration.helpers.base_internal_test import BaseInternalTest from integration.helpers.base_test import nonblocking -from integration.helpers.resource import current_region_not_included +from integration.helpers.resource import current_region_does_not_support, current_region_not_included @skipIf( - current_region_not_included([CUSTOM_DOMAIN]), - "Custom domain is not supported in this testing region", + current_region_not_included([CUSTOM_DOMAIN]) or current_region_does_not_support([SECURITY_POLICY_REST_API]), + "Custom domain or SecurityPolicy are not supported in this testing region", ) @nonblocking class TestApiWithCustomDomainSecurityPolicy(BaseInternalTest): diff --git a/integration/single/test_api_with_endpoint_access_mode.py b/integration/single/test_api_with_endpoint_access_mode.py index dc2ce6a95..c5a3b7e40 100644 --- a/integration/single/test_api_with_endpoint_access_mode.py +++ b/integration/single/test_api_with_endpoint_access_mode.py @@ -1,11 +1,14 @@ from unittest.case import skipIf -from integration.config.service_names import REST_API +from integration.config.service_names import REST_API, SECURITY_POLICY_REST_API from integration.helpers.base_test import BaseTest from integration.helpers.resource import current_region_does_not_support -@skipIf(current_region_does_not_support([REST_API]), "Rest API is not supported in this testing region") +@skipIf( + current_region_does_not_support([REST_API, SECURITY_POLICY_REST_API]), + "Rest API or SecurityPolicy are not supported in this testing region", +) class TestApiWithEndpointAccessMode(BaseTest): """ Tests for AWS::Serverless::Api with EndpointAccessMode property