diff --git a/integration/combination/test_connectors.py b/integration/combination/test_connectors.py index 47bc42a4a..6fc1e4cf8 100644 --- a/integration/combination/test_connectors.py +++ b/integration/combination/test_connectors.py @@ -1,10 +1,13 @@ +from unittest.case import skipIf + from time import sleep from unittest import SkipTest from parameterized import parameterized from tenacity import retry, stop_after_attempt, retry_if_exception from integration.conftest import clean_bucket from integration.helpers.base_test import S3_BUCKET_PREFIX, BaseTest -from integration.helpers.resource import generate_suffix +from integration.helpers.resource import generate_suffix, current_region_does_not_support +from integration.config.service_names import LOCATION retry_once = retry( stop=stop_after_attempt(2), @@ -13,6 +16,10 @@ ) +@skipIf( + current_region_does_not_support([LOCATION]), + "Location service is not supported in this testing region", +) class TestConnectors(BaseTest): def tearDown(self): # Some tests will create items in S3 Bucket, which result in stack DELETE_FAILED state diff --git a/integration/config/service_names.py b/integration/config/service_names.py index f26da0930..3d6bf1953 100644 --- a/integration/config/service_names.py +++ b/integration/config/service_names.py @@ -7,6 +7,7 @@ REST_API = "RestApi" IOT = "IoT" CODE_DEPLOY = "CodeDeploy" +LOCATION = "Location" ARM = "ARM" GATEWAY_RESPONSES = "GatewayResponses" MSK = "MSK"