Skip to content

Commit e90a899

Browse files
committed
add skip tests
1 parent 27e98f0 commit e90a899

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

integration/single/test_basic_function.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from unittest.case import skipIf
22

3-
from integration.config.service_names import KMS, XRAY, ARM
3+
from integration.config.service_names import KMS, XRAY, ARM, CODE_DEPLOY, HTTP_API
44
from integration.helpers.resource import current_region_does_not_support
55
from parameterized import parameterized
66
from integration.helpers.base_test import BaseTest
@@ -35,6 +35,7 @@ def test_basic_function(self, file_name):
3535
"single/function_alias_with_http_api_events",
3636
]
3737
)
38+
@skipIf(current_region_does_not_support([HTTP_API]), "HTTP API is not supported in this testing region")
3839
def test_function_with_http_api_events(self, file_name):
3940
self.create_and_verify_stack(file_name)
4041

@@ -98,6 +99,7 @@ def test_basic_function_with_url_config(self, file_name, qualifier):
9899
self.assertEqual(function_url_config["Cors"], cors_config)
99100
self._assert_invoke(lambda_client, function_name, qualifier, 200)
100101

102+
@skipIf(current_region_does_not_support([CODE_DEPLOY]), "CodeDeploy is not supported in this testing region")
101103
def test_function_with_deployment_preference_alarms_intrinsic_if(self):
102104
self.create_and_verify_stack("single/function_with_deployment_preference_alarms_intrinsic_if")
103105

0 commit comments

Comments
 (0)