ЛР 2: PostgreSQL, Redis-сессии и проверки на оценку 4

This commit is contained in:
2026-10-26 23:25:37 +03:00
parent 65003b6119
commit ef96551b7d
47 changed files with 1839 additions and 19 deletions
+8
View File
@@ -0,0 +1,8 @@
$ python scripts/demo.py
1. Readiness 200; registered three users; Basic login returned Bearer sessions.
2. Created chat: c2817969-606b-4551-bff4-c98ba084c1b4 ; members: Alice and Bob.
3. POST message -> 201; message id: ac5d70bf-4bd4-4da8-a17b-e8505600bc15
4. Bob reads Alice's committed message -> 200: Привет, Боб! Это лабораторная 2.
5. Eve is authenticated but not a chat member -> 404.
6. X-User-Id without Bearer -> 401.
7. Logout -> 204; previous token -> 401. Demo PASS.