Skip to content

Commit a624451

Browse files
authored
chore: Add capability to disable S3 Events integration test cases. (#2454)
* chore: Add capability to disable S3 Events integration test cases. * fix black issue
1 parent b2fd0e7 commit a624451

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

integration/combination/test_function_with_s3_bucket.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1+
from unittest.case import skipIf
2+
13
from integration.helpers.base_test import BaseTest
4+
from integration.helpers.resource import current_region_does_not_support
5+
from integration.config.service_names import S3_EVENTS
26

37

8+
@skipIf(current_region_does_not_support([S3_EVENTS]), "S3 Events feature is not supported in this testing region")
49
class TestFunctionWithS3Bucket(BaseTest):
510
def test_function_with_s3_bucket_trigger(self):
611
self.create_and_verify_stack("combination/function_with_s3")

integration/config/service_names.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@
2323
CUSTOM_DOMAIN = "CustomDomain"
2424
ARM = "ARM"
2525
EFS = "EFS"
26+
S3_EVENTS = "S3Events"

0 commit comments

Comments
 (0)