Integeration tests for SQS Automatic Request Batching #5576
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation and Context
Summary of Testing in
RequestBatchManagerSqsIntegrationTest
This test class performs integration testing for AWS SQS batch manager, covering various message sending, receiving, and management scenarios using SQS.
Scenarios Covered:
Basic Message Sending:
sendTenMessages
: Sends 10 messages to a queue.sendTwentyMessages
: Sends 20 messages to a queue.Batching and Scheduling:
scheduleSendFiveMessages
: Sends 5 messages in a batch and checks batch processing time.scheduleTwoSendMessageBatches
: Sends 10 messages in two batches and checks batch behavior.Multi-threaded Message Sending:
sendMultipleMessagesWithMultiThread
: Sends messages using multiple threads and verifies concurrency.Messages to Different Queues:
scheduleFiveMessagesWithEachThreadToDifferentLocations
: Sends messages to different queues from multiple threads.Message Deletion:
deleteMessages
: Sends and deletes messages, ensuring batch deletion works.Visibility Timeout Change:
changeVisibilityMessages
: Changes visibility timeout of messages after sending.Large Message Handling:
sendMessagesWhichCanExceed256KiBCollectively
: Sends large messages (256 KiB) and verifies correct handling.Queue Management:
createSendMessageRequestsForDifferentDestinations
: Creates multiple queues and sends messages to them.Key Features:
Summary of Testing in
ResponseBatchManagerSqsIntegrationTest
This test class performs integration testing for AWS SQS response batch manager, focusing on message sending, receiving, and processing via SQS.
Scenarios Covered:
Basic Message Receiving:
simpleReceiveMessagesWithDefaultConfiguration
: Sends 10 messages and receives them with default batch manager settings. Ensures no message attributes or system attributes are present.Custom Configuration for Message Receiving:
simpleReceiveMessagesWithCustomConfigurations
: Tests receiving messages with custom configurations (e.g., wait time, message attributes). Ensures message attributes and system attributes are correctly processed.Request-Level Max Message and Wait Time Handling:
requestLevelMaxMessageAndWaitTimeIsHonoured
: Ensures the request-level configurations likemaxNumberOfMessages
andwaitTimeSeconds
are respected when receiving and processing messages. Verifies message deletion after receiving each message.Key Features:
License