From 017e95d70afb90830689b155faf5030d5d05729a Mon Sep 17 00:00:00 2001 From: Kenshin Okinaka Date: Thu, 27 Aug 2026 11:28:14 +0900 Subject: [PATCH] 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 --- .../floci/services/ses/SesTagsV2IntegrationTest.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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