ЛР2: PostgreSQL, сессии и Valkey (на 4)
Skeleton contracts / contracts (pull_request) Canceled after 0s

API мессенджера на FastAPI + asyncpg, миграции, Argon2id, Bearer-сессии
в PostgreSQL с кэшем Valkey, compose-стенд, restart.sh, тесты уровня 4,
EXPLAIN и отчёт.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-29 18:49:32 +03:00
co-authored by Claude Opus 5.5
parent 65003b6119
commit 0c5846173b
31 changed files with 1880 additions and 15 deletions
+13
View File
@@ -0,0 +1,13 @@
# Grade-4 student tests, 2026-10-29T15:36:49Z
$ sh scripts/test-grade4.sh
PASS test_wrong_password (0.4s)
PASS test_logout (0.6s)
PASS test_short_ttl (3.2s)
PASS test_username_race (1.6s)
PASS test_chat_rollback (1.0s)
PASS test_cursor_rules (0.8s)
PASS test_valkey_cache_role (1.5s)
PASS test_revoke_during_cache_partition (1.9s)
PASS test_valkey_down (4.2s)
PASS test_postgres_down (9.0s)
10/10 passed