fix(sqs): include MD5OfMessageAttributes in SendMessageBatch JSON response (#496)

This commit is contained in:
Mario Slatinac authored and GitHub committed 2026-04-17 18:37:36 -05:00
1 parent 01c544006c
commit 7f82a28abb
2 files changed
+28

No files matched your search

@@ -144,6 +144,31 @@ class SqsJsonProtocolTest {
.body("Attributes.QueueArn", notNullValue());
}
@Test
@Order(6)
void sendMessageBatchReturnsMd5OfMessageAttributes() {
String body = "{\"QueueUrl\":\"" + queueUrl + "\","
+ "\"Entries\":[{"
+ "\"Id\":\"m1\","
+ "\"MessageBody\":\"batch body\","
+ "\"MessageAttributes\":{"
+ "\"trace-id\":{\"DataType\":\"String\",\"StringValue\":\"abc-123\"}"
+ "}}]}";
given()
.contentType(CONTENT_TYPE)
.header("X-Amz-Target", "AmazonSQS.SendMessageBatch")
.body(body)
.when()
.post("/" + ACCOUNT_ID + "/" + QUEUE_NAME)
.then()
.statusCode(200)
.body("Successful", hasSize(1))
.body("Successful[0].Id", equalTo("m1"))
.body("Successful[0].MD5OfMessageBody", notNullValue())
.body("Successful[0].MD5OfMessageAttributes", notNullValue());
}
@Test
@Order(7)
void deleteQueueViaQueueUrlPath() {