forked from mtusi2026/mtusi2026lab4
93 lines
2.6 KiB
JSON
93 lines
2.6 KiB
JSON
[
|
|
{
|
|
"test": "one session served by >=2 replicas without re-login (no stickiness)",
|
|
"result": "PASS",
|
|
"detail": "distribution [15, 15]"
|
|
},
|
|
{
|
|
"test": "X-Instance-Id is present on errors and health too",
|
|
"result": "PASS",
|
|
"detail": null
|
|
},
|
|
{
|
|
"test": "Idempotency-Key missing or malformed -> 400, nothing stored",
|
|
"result": "PASS",
|
|
"detail": null
|
|
},
|
|
{
|
|
"test": "concurrent replay of one key through different replicas -> exactly one message",
|
|
"result": "PASS",
|
|
"detail": "24 parallel requests via 2 replicas -> 1 message"
|
|
},
|
|
{
|
|
"test": "replay is semantic: JSON key order/whitespace does not matter; other body -> 409",
|
|
"result": "PASS",
|
|
"detail": null
|
|
},
|
|
{
|
|
"test": "key scope = user + chat: same key is independent for other user / other chat",
|
|
"result": "PASS",
|
|
"detail": null
|
|
},
|
|
{
|
|
"test": "logout is visible on every replica immediately (shared sessions)",
|
|
"result": "PASS",
|
|
"detail": "revoked token rejected by 2 replicas"
|
|
},
|
|
{
|
|
"test": "replay re-checks the session and chat access",
|
|
"result": "PASS",
|
|
"detail": null
|
|
},
|
|
{
|
|
"test": "PNG and JPEG upload/download byte-exact with true Content-Type",
|
|
"result": "PASS",
|
|
"detail": "png 111817 B, jpeg 2565 B"
|
|
},
|
|
{
|
|
"test": "size limit: valid ~10 MiB image accepted, 10 MiB + 1 byte -> 413",
|
|
"result": "PASS",
|
|
"detail": "accepted 10420335 B, rejected 10485761 B"
|
|
},
|
|
{
|
|
"test": "decompression bomb (400M px header, tiny body) -> 413 before decoding",
|
|
"result": "PASS",
|
|
"detail": "83 B rejected in 25 ms"
|
|
},
|
|
{
|
|
"test": "corrupted images and MIME spoofing -> 415, never 500",
|
|
"result": "PASS",
|
|
"detail": "9 spoof/corrupt variants -> 415"
|
|
},
|
|
{
|
|
"test": "dangerous filenames -> 400; Unicode display name kept as-is",
|
|
"result": "PASS",
|
|
"detail": "12 bad names rejected"
|
|
},
|
|
{
|
|
"test": "attachment_ids validation: duplicates, >10, bad UUID, empty text without files -> 400",
|
|
"result": "PASS",
|
|
"detail": null
|
|
},
|
|
{
|
|
"test": "idempotency: missing attachment_ids == []; other attachment list -> 409",
|
|
"result": "PASS",
|
|
"detail": null
|
|
},
|
|
{
|
|
"test": "10 concurrent uploads through both replicas: all 201, distinct ids, same bytes back",
|
|
"result": "PASS",
|
|
"detail": "10 uploads via 2 replicas"
|
|
},
|
|
{
|
|
"test": "ACL: outsider gets 404 on upload, metadata, content; no token -> 401",
|
|
"result": "PASS",
|
|
"detail": null
|
|
},
|
|
{
|
|
"test": "message attachment_ids: other chat / foreign / unknown -> 404, nothing stored",
|
|
"result": "PASS",
|
|
"detail": null
|
|
}
|
|
]
|