mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 01:12:48 -05:00
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:
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
|
||||
|
||||
Reference in new issue
Block a user