ЛР 2 — БВТ-2302 — Сабитов — на 3
Lab 2 application / postgres (pull_request) Canceled after 0s
Skeleton contracts / contracts (pull_request) Canceled after 0s

This commit is contained in:
2026-12-01 00:50:23 +03:00
parent 65003b6119
commit ff7296c240
17 changed files with 987 additions and 34 deletions
+21
View File
@@ -0,0 +1,21 @@
Docker verification 2026-11-23T23:56:41.1815671+03:00
PASS: Compose build and startup (http://127.0.0.1:18082)
python -X utf8 scripts/check_contract.py
PASS: offline skeleton structure, local refs and Python syntax; 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/student_tests.py --base-url http://127.0.0.1:18082
PASS: validation, Unicode Basic login, access, pagination and logout
python tests/contract_edge_tests.py --base-url http://127.0.0.1:18082
PASS: 22 Lab 2 contract edge-case HTTP checks
Before restart: api=2026-11-23T20:56:35.336160953Z db=2026-11-23T20:56:32.651654239Z volume=mtusi-lab2-review-1123_pgdata
python tests/resilience.py --mode persistence --action-script scripts/restart.cmd --base-url http://127.0.0.1:18082
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 restart: api=2026-11-23T20:56:48.209619191Z db=2026-11-23T20:56:45.52776417Z volume=mtusi-lab2-review-1123_pgdata
PASS: both Docker containers restarted and the database volume was retained
PASS: PostgreSQL has exactly one migration record with version 1 after restart
SESSION_TTL_SECONDS=2; python tests/student_tests.py --expiry --base-url http://127.0.0.1:18082
PASS: Bearer session expires without logout
Python 3.12.10
postgres (PostgreSQL) 16.16 (Debian 16.16-1.pgdg12+1)
+17
View File
@@ -0,0 +1,17 @@
Docker verification 2026-11-30T09:38:26.7768121+03:00
PASS: Compose build and startup (http://127.0.0.1:8082)
python -X utf8 scripts/check_contract.py
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
python tests/smoke.py --base-url http://127.0.0.1:8082
PASS: lab2 public API scenario; infrastructure and grading evidence remain separate.
python tests/student_tests.py --base-url http://127.0.0.1:8082
PASS: validation, Unicode Basic login, access, pagination and logout
python tests/contract_edge_tests.py --base-url http://127.0.0.1:8082
PASS: 22 Lab 2 contract edge-case HTTP checks
Before restart: api=2026-11-30T06:38:19.803038106Z db=2026-11-30T06:38:16.990609434Z volume=mtusi-lab2-selfcheck-20261130093752_pgdata
python tests/resilience.py --mode persistence --action-script scripts/restart.cmd --base-url http://127.0.0.1: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.
After restart: api=2026-11-30T06:38:38.606049433Z db=2026-11-30T06:38:35.806522427Z volume=mtusi-lab2-selfcheck-20261130093752_pgdata
PASS: both Docker containers restarted and the database volume was retained
PASS: PostgreSQL has exactly one migration record with version 1 after restart