Skip to content

Commit

Permalink
chore: Add skip_using_service_detector to sns integ tests (#3016)
Browse files Browse the repository at this point in the history
  • Loading branch information
aahung committed Mar 10, 2023
1 parent a0208dd commit 699882e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions integration/combination/test_function_with_sns.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
@skipIf(current_region_does_not_support([SNS]), "SNS is not supported in this testing region")
class TestFunctionWithSns(BaseTest):
def test_function_with_sns_bucket_trigger(self):
self.create_and_verify_stack("combination/function_with_sns")
template_file_path = "combination/function_with_sns"
self.skip_using_service_detector(template_file_path)
self.create_and_verify_stack(template_file_path)

sns_client = self.client_provider.sns_client

Expand All @@ -33,7 +35,9 @@ def test_function_with_sns_bucket_trigger(self):
self.assertEqual(sqs_subscription["TopicArn"], sns_topic_arn)

def test_function_with_sns_intrinsics(self):
self.create_and_verify_stack("combination/function_with_sns_intrinsics")
template_file_path = "combination/function_with_sns_intrinsics"
self.skip_using_service_detector(template_file_path)
self.create_and_verify_stack(template_file_path)

sns_client = self.client_provider.sns_client

Expand Down

0 comments on commit 699882e

Please sign in to comment.