This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
# date: 2026-10-07T14:19:14Z
|
||||
# date: 2026-10-08T21:04:47Z
|
||||
$ make test-student
|
||||
BASE_URL="http://localhost:18080" sh student-tests/run_all.sh
|
||||
== own_tests.py
|
||||
ok - malformed JSON -> 400 invalid_request
|
||||
ok - foreign chat access -> 404 (no leak)
|
||||
@@ -27,18 +26,18 @@ PASS: 7 checks
|
||||
ok - 20 concurrent registrations of one username -> 1x201, 19x409, 1 row
|
||||
ok - chat with unknown member -> 400 and transaction rolled back (no orphan chat)
|
||||
ok - password stored as $argon2id$..., sessions keep only sha256(token)
|
||||
ok - migrations run twice more: schema_migrations and data unchanged (1:49)
|
||||
ok - migrations run twice more: schema_migrations and data unchanged (1:113)
|
||||
PASS: 4 checks
|
||||
|
||||
== dependency_test.py
|
||||
ok - Valkey caches sessions with TTL<=300s and keeps logout tombstones
|
||||
ok - Valkey stopped: ready=200, reads/writes OK, revoked token 401, 4 ms/request
|
||||
ok - Valkey stopped: ready=200, reads/writes OK, revoked token 401, 3 ms/request
|
||||
ok - PostgreSQL stopped: live=200, ready/business=503 in 0.0s total, unverified token not trusted
|
||||
ok - PostgreSQL started again: API recovers without restart, data intact
|
||||
PASS: 4 checks
|
||||
|
||||
== sigterm_test.sh
|
||||
api stopped in 0s, exit code 0 (0 = graceful, 137 = SIGKILL)
|
||||
api stopped in 1s, exit code 0 (0 = graceful, 137 = SIGKILL)
|
||||
PASS: graceful SIGTERM shutdown, api restarted
|
||||
|
||||
ALL STUDENT TESTS PASSED
|
||||
|
||||
Reference in New Issue
Block a user