Skip to content

Commit 06931dd

Browse files
authored
chore: [Foss] Sync public: Add skip condition for EFS tests (#2436)
Add skip condition for EFS test
1 parent c8087bc commit 06931dd

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed
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+
3+
from integration.config.service_names import EFS
14
from integration.helpers.base_test import BaseTest
5+
from integration.helpers.resource import current_region_does_not_support
26

37

48
class TestFunctionWithFileSystemConfig(BaseTest):
9+
@skipIf(current_region_does_not_support([EFS]), "EFS is not supported in this testing region")
510
def test_function_with_efs_integration(self):
611
self.create_and_verify_stack("combination/function_with_file_system_config")

integration/config/service_names.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@
2222
SQS = "SQS"
2323
CUSTOM_DOMAIN = "CustomDomain"
2424
ARM = "ARM"
25+
EFS = "EFS"

0 commit comments

Comments
 (0)