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

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

* test(ses): assert the full empty-TagKeys error body
This commit is contained in:
Kenshin Okinaka authored and GitHub committed 2026-08-26 22:28:14 -04:00
1 parent a2bd22d5f8
commit 017e95d70a
1 file changed
+4 -2
@@ -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