forked from mtusi2026/mtusi2026lab2
20 lines
1.7 KiB
Plaintext
20 lines
1.7 KiB
Plaintext
PASS: duplicate username returns 409
|
|
PASS: invalid JSON returns 400
|
|
PASS: wrong and extra fields return 400
|
|
PASS: foreign chat returns 404
|
|
PASS: empty and too long messages return 400, 4000 chars is ok
|
|
PASS: pagination works across multiple pages, foreign cursor returns 400
|
|
PASS: chat list pagination
|
|
PASS: unicode text is stored as is
|
|
PASS: user response has no password or hash
|
|
PASS: password length 12..128, blank password is rejected
|
|
PASS: Basic login returns opaque Bearer token with expiry
|
|
PASS: wrong password and unknown user both return the same 401
|
|
PASS: malformed Basic header returns 401
|
|
PASS: password with colon and unicode works
|
|
PASS: business endpoints need Bearer; Basic and X-User-Id give 401
|
|
PASS: X-User-Id does not change the current user
|
|
PASS: 401 comes before 400 and 404
|
|
PASS: logout revokes only the current session
|
|
18 passed, 0 failed
|