forked from mtusi2026/mtusi2026lab2
Реализовать лабораторную 2
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
2026-11-12. Windows, Python 3.13.5, Docker Desktop с Linux-контейнерами.
|
||||
PUBLIC_PORT=18082, BASE_URL=http://127.0.0.1:18082
|
||||
|
||||
> python scripts/check_contract.py
|
||||
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
|
||||
|
||||
> python scripts/validate_openapi.py
|
||||
PASS: full OpenAPI 3.1 and JSON Schema validation; application NOT tested.
|
||||
|
||||
> python tests/smoke.py --base-url http://127.0.0.1:18082
|
||||
PASS: lab2 public API scenario; infrastructure and grading evidence remain separate.
|
||||
|
||||
> python tests/resilience.py --mode persistence --action-script scripts/restart.cmd
|
||||
Hook: docker compose restart db cache api.
|
||||
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
|
||||
> python student-tests/check_dependencies.py
|
||||
PASS: Redis contains the profile entry
|
||||
PASS: wrong password, X-User-Id rejected, concurrent registration, chat rollback
|
||||
PASS: cache stopped, authenticated GET returned 200
|
||||
PASS: db stopped, authenticated GET returned 503
|
||||
PASS: logout and 2-second session expiry
|
||||
|
||||
> Get-Content student-tests/explain.sql -Raw | docker compose exec -T db psql -U messenger -d messenger
|
||||
INSERT 0 12000
|
||||
ANALYZE
|
||||
Limit (actual time=0.024..0.033 rows=51 loops=1)
|
||||
Buffers: shared hit=3
|
||||
-> Index Scan using messages_history_idx on messages (actual time=0.024..0.030 rows=51 loops=1)
|
||||
Index Cond: (chat_id = … AND ROW(created_at, id) > ROW(…, …))
|
||||
Buffers: shared hit=3
|
||||
Planning Time: 0.147 ms
|
||||
Execution Time: 0.126 ms
|
||||
ROLLBACK
|
||||
Reference in New Issue
Block a user