Разбить API на слои, комментарии на русском
Skeleton contracts / contracts (pull_request) Canceled after 0s
Skeleton contracts / contracts (pull_request) Canceled after 0s
routes -> http/auth -> repositories -> infra; поведение не изменилось, smoke, persistence и тесты уровня 4 перепрогнаны.
This commit is contained in:
+1
-1
@@ -3,5 +3,5 @@ PASS test_chat_rollback - chat with unknown member -> 400, no chat/member rows (
|
||||
PASS test_pagination_and_injection - 57 messages over limit=7 pages: exact order, no dupes; foreign/garbage cursor -> 400; SQL text stored verbatim
|
||||
PASS test_wrong_password_and_logout - wrong password / unknown user -> identical 401 Basic; logout -> 204, then 401 twice
|
||||
PASS test_expiry - SESSION_TTL_SECONDS=2: 200 right after login, 401 after 3 s on both API processes
|
||||
PASS test_valkey_outage - valkey stopped -> ready/me 503 unavailable in 0.02s, anonymous 401, registration 201; recovered with same token
|
||||
PASS test_valkey_outage - valkey stopped -> ready/me 503 unavailable in 0.00s, anonymous 401, registration 201; recovered with same token
|
||||
PASS test_postgres_outage - postgres stopped -> ready/me 503 unavailable in 2.01s, anonymous 401, registration 503; recovered with same token
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
# before
|
||||
api 2026-10-29T17:36:26.445238878Z
|
||||
postgres 2026-10-29T17:37:54.996532602Z
|
||||
valkey 2026-10-29T17:37:48.230161722Z
|
||||
# до
|
||||
api 2026-10-29T19:24:06.025293463Z
|
||||
postgres 2026-10-29T17:47:05.59081531Z
|
||||
valkey 2026-10-29T17:46:58.822273137Z
|
||||
python3 tests/resilience.py --mode persistence --action-script "scripts/restart.sh" --base-url "http://127.0.0.1:8080"
|
||||
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
|
||||
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
# after (all three StartedAt changed, volumes kept)
|
||||
api 2026-10-29T17:46:36.369988683Z
|
||||
postgres 2026-10-29T17:46:31.719791235Z
|
||||
valkey 2026-10-29T17:46:31.735641919Z
|
||||
# после (StartedAt всех трёх изменился, volumes те же)
|
||||
api 2026-10-29T19:24:22.684206123Z
|
||||
postgres 2026-10-29T19:24:19.291967372Z
|
||||
valkey 2026-10-29T19:24:19.294812208Z
|
||||
DRIVER VOLUME NAME
|
||||
local messenger-lab2_pgdata
|
||||
local messenger-lab2_valkeydata
|
||||
|
||||
+1
-1
@@ -1,3 +1,3 @@
|
||||
# 2026-10-29T17:46:26Z
|
||||
# 2026-10-29T19:24:17Z
|
||||
python3 tests/smoke.py --base-url "http://127.0.0.1:8080"
|
||||
PASS: lab2 public API scenario; infrastructure and grading evidence remain separate.
|
||||
|
||||
Reference in New Issue
Block a user