forked from mtusi2026/mtusi2026lab2
ЛР 2: PostgreSQL и постоянные сессии — Гавриленко БПИ2303, на 3
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
python3 scripts/check_contract.py
|
||||
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
|
||||
python3 tests/smoke.py --base-url "http://localhost:8082"
|
||||
PASS: lab2 public API scenario; infrastructure and grading evidence remain separate.
|
||||
PASS: validation, access, Unicode, pagination and cursor scope
|
||||
PASS: malformed JSON and duplicate username
|
||||
PASS: Unicode/colon passwords, length boundaries, invalid chat creation
|
||||
PASS: repeated migrations preserve row counts; scrypt/token digests; FK and transaction rollback
|
||||
@@ -0,0 +1,23 @@
|
||||
Container gavrilenko-lab2-db-1 Running
|
||||
Container gavrilenko-lab2-api-1 Recreate
|
||||
Container gavrilenko-lab2-api-1 Recreated
|
||||
Container gavrilenko-lab2-db-1 Waiting
|
||||
Container gavrilenko-lab2-db-1 Healthy
|
||||
Container gavrilenko-lab2-api-1 Starting
|
||||
Container gavrilenko-lab2-api-1 Started
|
||||
Container gavrilenko-lab2-db-1 Waiting
|
||||
Container gavrilenko-lab2-api-1 Waiting
|
||||
Container gavrilenko-lab2-db-1 Healthy
|
||||
Container gavrilenko-lab2-api-1 Healthy
|
||||
PASS: session expires with TTL=2; expired token cannot read or logout
|
||||
Container gavrilenko-lab2-db-1 Running
|
||||
Container gavrilenko-lab2-api-1 Recreate
|
||||
Container gavrilenko-lab2-api-1 Recreated
|
||||
Container gavrilenko-lab2-db-1 Waiting
|
||||
Container gavrilenko-lab2-db-1 Healthy
|
||||
Container gavrilenko-lab2-api-1 Starting
|
||||
Container gavrilenko-lab2-api-1 Started
|
||||
Container gavrilenko-lab2-db-1 Waiting
|
||||
Container gavrilenko-lab2-api-1 Waiting
|
||||
Container gavrilenko-lab2-db-1 Healthy
|
||||
Container gavrilenko-lab2-api-1 Healthy
|
||||
@@ -0,0 +1,18 @@
|
||||
|
||||
→ GET http://localhost:8082/health/ready
|
||||
200 OK ★ 25ms time ★ 0B↑ 16B↓ size ★ 7↑ 5↓ headers ★ 0 cookies
|
||||
┌ ↓ application/json; charset=utf-8 ★ json ★ json ★ utf-8 ★ 16B
|
||||
│ {"status": "ok"}
|
||||
└
|
||||
|
||||
┌ ✓ tests ★ 3 passed
|
||||
│ ✓ ready status
|
||||
│ ✓ body
|
||||
│ ✓ request ID
|
||||
└
|
||||
|
||||
A new version of Postman CLI is available (v1.88.0). Refer https://go.pstmn.io/cli-release-notes for changelogs.
|
||||
To update your Postman CLI, run:
|
||||
|
||||
postman update
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
/gavrilenko-lab2-api-1 started=2026-11-12T22:25:25.398171052Z volumes=
|
||||
/gavrilenko-lab2-db-1 started=2026-11-12T22:25:22.742407962Z volumes=gavrilenko-lab2_postgres_data
|
||||
python3 tests/resilience.py --mode persistence --action-script "scripts/restart.sh" --base-url "http://localhost:8082"
|
||||
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
|
||||
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
/gavrilenko-lab2-api-1 started=2026-11-12T22:26:00.761156584Z volumes=
|
||||
/gavrilenko-lab2-db-1 started=2026-11-12T22:25:58.053128425Z volumes=gavrilenko-lab2_postgres_data
|
||||
Reference in New Issue
Block a user