forked from mtusi2026/mtusi2026lab5
на оценку 5
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
# Lab5 grade 3 — результаты проверок
|
||||
|
||||
Дата: 2026-11-04
|
||||
Ветка: `solution/bvt2301-churilin`
|
||||
|
||||
```text
|
||||
make check
|
||||
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
|
||||
|
||||
make validate PYTHON=/home/d1frend/HL/mtusi2026lab4/.venv/bin/python
|
||||
PASS: full OpenAPI 3.1 and JSON Schema validation; application NOT tested.
|
||||
|
||||
make test BASE_URL=http://127.0.0.1:8080
|
||||
PASS: lab5 public API scenario; infrastructure and grading evidence remain separate.
|
||||
|
||||
make test-async-resilience BASE_URL=http://127.0.0.1:8080
|
||||
PASS: durable recovery, idempotent redelivery and bounded final failure verified.
|
||||
|
||||
make test-persistence ACTION_SCRIPT=scripts/restart.sh BASE_URL=http://127.0.0.1:8080
|
||||
PASS: persistence preserved confirmed data and existing session.
|
||||
|
||||
make test-failover ACTION_SCRIPT=scripts/stop-one.sh BASE_URL=http://127.0.0.1:8080
|
||||
{"observed_instances_before": 2, "successful_writes": 142, "failed_attempts": 0, "first_recovery_seconds": 2.776}
|
||||
PASS: failover preserved confirmed data and existing session.
|
||||
|
||||
make test-attachment-boundaries
|
||||
PASS: exact byte/pixel boundaries, complete decode, and filename validation are correct.
|
||||
|
||||
make test-attachment-memory
|
||||
{"api_instances_observed": 2, "concurrency": 12, "elapsed_seconds": 1.007, "payload_bytes": 6293028, "peak_memory_bytes_by_container": {"mtusi2026lab5-api-1": 27472691, "mtusi2026lab5-api-2": 27294433}, "successful_uploads": 12, "total_uploaded_bytes": 75516336}
|
||||
PASS: concurrent attachment uploads remained within configured API memory limits.
|
||||
|
||||
make test-minio-policy
|
||||
PASS: API has no MinIO root credentials; limited policy permits object IO only in the private bucket; anonymous GET is denied.
|
||||
|
||||
make test-storage-outage
|
||||
{"original_bytes_verified": 111817, "readiness_503_seconds": 2.004, "upload_503_seconds": 5.011}
|
||||
PASS: MinIO outage returns bounded JSON 503 and preserves existing originals.
|
||||
|
||||
go test ./...
|
||||
PASS
|
||||
|
||||
go vet ./...
|
||||
PASS
|
||||
|
||||
docker compose --env-file .env config --quiet
|
||||
exit 0
|
||||
```
|
||||
|
||||
Сценарии и ожидаемые инварианты находятся в `tests/async_resilience.py`, `tests/resilience.py`, `scripts/restart.sh` и `scripts/stop-one.sh`.
|
||||
Reference in New Issue
Block a user