diff --git a/integration/combination/test_function_with_all_event_types.py b/integration/combination/test_function_with_all_event_types.py index 1a2913bff..f593579aa 100644 --- a/integration/combination/test_function_with_all_event_types.py +++ b/integration/combination/test_function_with_all_event_types.py @@ -1,13 +1,13 @@ from unittest.case import skipIf -from integration.config.service_names import IOT, SCHEDULE_EVENT +from integration.config.service_names import IOT, LOGS, SCHEDULE_EVENT from integration.helpers.base_test import BaseTest from integration.helpers.resource import current_region_does_not_support, generate_suffix @skipIf( - current_region_does_not_support([IOT, SCHEDULE_EVENT]), - "IoT, ScheduleEvent is not supported in this testing region", + current_region_does_not_support([IOT, SCHEDULE_EVENT, LOGS]), + "IoT, ScheduleEvent or a Logs resource is not supported in this testing region", ) class TestFunctionWithAllEventTypes(BaseTest): def test_function_with_all_event_types(self): diff --git a/integration/combination/test_function_with_cloudwatch_log.py b/integration/combination/test_function_with_cloudwatch_log.py index e00974ba9..34641fc44 100644 --- a/integration/combination/test_function_with_cloudwatch_log.py +++ b/integration/combination/test_function_with_cloudwatch_log.py @@ -1,6 +1,14 @@ +from unittest.case import skipIf + +from integration.config.service_names import LOGS from integration.helpers.base_test import BaseTest +from integration.helpers.resource import current_region_does_not_support +@skipIf( + current_region_does_not_support([LOGS]), + "A Logs resource that is a part of this test is not supported in this testing region", +) class TestFunctionWithCloudWatchLog(BaseTest): def test_function_with_cloudwatch_log(self): self.create_and_verify_stack("combination/function_with_cloudwatch_log") diff --git a/integration/config/service_names.py b/integration/config/service_names.py index 0f6847c13..14f96b3e1 100644 --- a/integration/config/service_names.py +++ b/integration/config/service_names.py @@ -35,3 +35,4 @@ API_KEY = "ApiKey" APP_SYNC = "AppSync" SNS_FILTER_POLICY_SCOPE = "SnsFilterPolicyScope" +LOGS = "Logs"