Skip to content

Skip Location service integ tests if service is not supported #2831

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 30, 2023
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
9 changes: 8 additions & 1 deletion integration/combination/test_connectors.py
Original file line number Diff line number Diff line change
@@ -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),
Expand All @@ -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
Expand Down
1 change: 1 addition & 0 deletions integration/config/service_names.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
REST_API = "RestApi"
IOT = "IoT"
CODE_DEPLOY = "CodeDeploy"
LOCATION = "Location"
ARM = "ARM"
GATEWAY_RESPONSES = "GatewayResponses"
MSK = "MSK"
Expand Down