forked from mtusi2026/mtusi2026lab2
ЛР 2: PostgreSQL, Redis-сессии и проверки на оценку 4
This commit is contained in:
@@ -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.
|
||||
Reference in New Issue
Block a user