Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions integration/config/service_names.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,4 @@
SNS_FILTER_POLICY_SCOPE = "SnsFilterPolicyScope"
LOGS = "Logs"
EVENT_RULE_WITH_EVENT_BUS = "EventRuleWithEventBus"
SECURITY_POLICY_REST_API = "RestApiTlsPolicy"
Original file line number Diff line number Diff line change
@@ -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):
Expand Down
7 changes: 5 additions & 2 deletions integration/single/test_api_with_endpoint_access_mode.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Loading