Skip to content

Comments

Refactor SNSTemplate tests to use LocalstackContainerTest#1580

Open
haroya01 wants to merge 1 commit intoawspring:mainfrom
haroya01:refactor/sns-localstack-container-test-1579
Open

Refactor SNSTemplate tests to use LocalstackContainerTest#1580
haroya01 wants to merge 1 commit intoawspring:mainfrom
haroya01:refactor/sns-localstack-container-test-1579

Conversation

@haroya01
Copy link

Extract shared LocalStack container setup into LocalstackContainerTest interface, following the same pattern used in the S3 and DynamoDB modules.

Fixes gh-1579

📢 Type of change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring

📜 Description

Extract duplicated LocalStack container setup code from three SNS integration tests into a shared LocalstackContainerTest interface.

  • Created LocalstackContainerTest interface with snsClient() and sqsClient() factory methods
  • Refactored SnsTemplateIntegrationTest, SnsBatchTemplateIntegrationTest, and SnsSmsTemplateIntegrationTest to implement the interface

💡 Motivation and Context

💚 How did you test it?

  • Existing integration tests pass with the refactored setup.

📝 Checklist

  • I reviewed submitted code
  • I added tests to verify changes
  • I updated reference documentation to reflect the change
  • All tests passing
  • No breaking changes

🔮 Next steps

Extract shared LocalStack container setup into LocalstackContainerTest
interface, following the same pattern used in the S3 and DynamoDB
modules.

Fixes awspringgh-1579
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component: sns SNS integration related issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[SNS] - Refactor SNSTemplate test to use LocalstackContainer

1 participant