Skip to content

Commit 46352d6

Browse files
authored
Skip Location service integ tests if service is not supported (#2831)
Co-authored-by: Gavin Zhang <[email protected]>
1 parent 9d60258 commit 46352d6

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

integration/combination/test_connectors.py

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1+
from unittest.case import skipIf
2+
13
from time import sleep
24
from unittest import SkipTest
35
from parameterized import parameterized
46
from tenacity import retry, stop_after_attempt, retry_if_exception
57
from integration.conftest import clean_bucket
68
from integration.helpers.base_test import S3_BUCKET_PREFIX, BaseTest
7-
from integration.helpers.resource import generate_suffix
9+
from integration.helpers.resource import generate_suffix, current_region_does_not_support
10+
from integration.config.service_names import LOCATION
811

912
retry_once = retry(
1013
stop=stop_after_attempt(2),
@@ -13,6 +16,10 @@
1316
)
1417

1518

19+
@skipIf(
20+
current_region_does_not_support([LOCATION]),
21+
"Location service is not supported in this testing region",
22+
)
1623
class TestConnectors(BaseTest):
1724
def tearDown(self):
1825
# Some tests will create items in S3 Bucket, which result in stack DELETE_FAILED state

integration/config/service_names.py

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
REST_API = "RestApi"
88
IOT = "IoT"
99
CODE_DEPLOY = "CodeDeploy"
10+
LOCATION = "Location"
1011
ARM = "ARM"
1112
GATEWAY_RESPONSES = "GatewayResponses"
1213
MSK = "MSK"

0 commit comments

Comments
 (0)