69 lines
2.9 KiB
Plaintext
69 lines
2.9 KiB
Plaintext
Verified: 2026-10-05 16:03:17 UTC
|
|
|
|
$ make build
|
|
dotnet build src/Messenger.Api/Messenger.Api.csproj --nologo
|
|
Определение проектов для восстановления...
|
|
Все проекты обновлены для восстановления.
|
|
Messenger.Api -> /Users/nikitakamensky/Documents/mtusi2026lab2/src/Messenger.Api/bin/Debug/net9.0/Messenger.Api.dll
|
|
|
|
Сборка успешно завершена.
|
|
Предупреждений: 0
|
|
Ошибок: 0
|
|
|
|
Прошло времени 00:00:04.33
|
|
|
|
$ make check
|
|
.venv/bin/python scripts/check_contract.py
|
|
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
|
|
|
|
$ make validate
|
|
.venv/bin/python scripts/validate_openapi.py
|
|
PASS: full OpenAPI 3.1 and JSON Schema validation; application NOT tested.
|
|
|
|
$ make test
|
|
.venv/bin/python tests/smoke.py --base-url "http://localhost:18080"
|
|
PASS: lab2 public API scenario; infrastructure and grading evidence remain separate.
|
|
|
|
$ make student-test
|
|
.venv/bin/python student-tests/lab2_tests.py --base-url "http://localhost:18080"
|
|
PASS: Lab2 password, Basic, Bearer, input validation and session lifecycle
|
|
|
|
$ make test-expiry
|
|
BASE_URL="http://localhost:18080" PYTHON=".venv/bin/python" ./scripts/test-expiry.sh
|
|
Container mtusi2026lab2-api-1 Recreate
|
|
Container mtusi2026lab2-api-1 Recreated
|
|
Container mtusi2026lab2-api-1 Starting
|
|
Container mtusi2026lab2-api-1 Started
|
|
PASS: Lab2 password, Basic, Bearer, input validation and session lifecycle
|
|
Container mtusi2026lab2-api-1 Recreate
|
|
Container mtusi2026lab2-api-1 Recreated
|
|
Container mtusi2026lab2-api-1 Starting
|
|
Container mtusi2026lab2-api-1 Started
|
|
|
|
Container start times before persistence hook:
|
|
postgres 2026-10-05T15:56:37.702433876Z
|
|
api 2026-10-05T16:03:38.056657501Z
|
|
|
|
$ make test-persistence
|
|
.venv/bin/python tests/resilience.py --mode persistence --action-script "scripts/restart.sh" --base-url "http://localhost:18080"
|
|
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
|
|
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
|
|
|
|
Container start times after persistence hook:
|
|
postgres 2026-10-05T16:03:41.532620919Z
|
|
api 2026-10-05T16:03:42.119589503Z
|
|
|
|
Migration count and password KDF prefix (no hashes or credentials):
|
|
migrations=1
|
|
$argon2id
|
|
|
|
$ git check-ignore .env secrets/postgres_password secrets/database_url
|
|
.env
|
|
secrets/postgres_password
|
|
secrets/database_url
|
|
|
|
$ docker compose ps
|
|
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
|
|
mtusi2026lab2-api-1 messenger-lab2:local "dotnet Messenger.Ap…" api 7 seconds ago Up 1 second (health: starting) 127.0.0.1:18080->8080/tcp
|
|
mtusi2026lab2-postgres-1 postgres:17.6 "docker-entrypoint.s…" postgres 6 days ago Up 2 seconds (healthy) 5432/tcp
|