forked from mtusi2026/mtusi2026lab3
26 lines
1.1 KiB
Plaintext
26 lines
1.1 KiB
Plaintext
# student-tests: lab1/lab2 API tests via the balancer
|
|
# date: 2026-10-14 20:24:17, commit: 0ab3a34 + uncommitted changes
|
|
# command: python.exe student-tests/test_api.py
|
|
# exit code: 0, 2.5 s
|
|
|
|
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: strings with U+0000 are stored and returned 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
|
|
19 passed, 0 failed
|