Skip to content

armgit / floci

Public Imported from GitHub
0

Light, fluffy, and always free - The AWS Local Emulator alternative

test(ses): pin the explicit "message":null in the empty-TagKeys error body (#2602)

Kenshin Okinaka017e95d70afb
diff --git a/src/test/java/io/github/hectorvent/floci/services/ses/SesTagsV2IntegrationTest.java b/src/test/java/io/github/hectorvent/floci/services/ses/SesTagsV2IntegrationTest.java
index 11bba2b88f..8fc9823cb7 100644
--- a/src/test/java/io/github/hectorvent/floci/services/ses/SesTagsV2IntegrationTest.java
+++ b/src/test/java/io/github/hectorvent/floci/services/ses/SesTagsV2IntegrationTest.java
@@ -309,8 +309,10 @@ class SesTagsV2IntegrationTest {
.then()
.statusCode(400)
.header("X-Amzn-Errortype", containsString("ValidationException"))
- .body("__type", equalTo("ValidationException"))
- .body("message", nullValue());
+ // Exact raw-body match: GPath member assertions can't distinguish an absent member
+ // from an explicit JSON null, and a substring can't reject extra members — this
+ // pins the documented shape wholesale.
+ .body(equalTo("{\"__type\":\"ValidationException\",\"message\":null}"));
}
@Test