Integ test is needed to make sure Batching feature is able to handle SQS service real time behaviour when it comes to sending and receieing message
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:
Multi-threading: Concurrent message sending and management.
Batching: Focus on batch processing for sending, receiving, and deleting messages.
Message Size Limit: Tests sending large messages near the 256 KiB limit.
Custom Configurations: Tests custom attributes and system attributes for messages.
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 like maxNumberOfMessages and waitTimeSeconds are respected when receiving and processing messages. Verifies message deletion after receiving each message.
Key Features:
Batch Processing: Tests the behavior of batch manager while sending, receiving, and deleting messages.
Custom Configurations: Tests custom configurations for receiving messages (e.g., attribute names, system attribute names, wait times).
Message Deletion: Ensures proper message deletion after processing.
License
[x] I confirm that this pull request can be released under the Apache 2 license
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