forked from mtusi2026/mtusi2026lab5
50 lines
2.8 KiB
Plaintext
50 lines
2.8 KiB
Plaintext
$ python3 scripts/check_contract.py
|
|
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
|
|
$ python3 tests/smoke.py (upload -> 202 queued -> ready, thumbnail 256x160)
|
|
PASS: lab5 public API scenario; infrastructure and grading evidence remain separate.
|
|
# контейнеры до перезапуска:
|
|
/mtusi-lab5-api-1 StartedAt=2026-10-02T23:58:35.341793495Z
|
|
/mtusi-lab5-api-2 StartedAt=2026-10-02T23:58:35.523444484Z
|
|
/mtusi-lab5-worker-1 StartedAt=2026-10-02T23:58:48.76269165Z
|
|
/mtusi-lab5-rabbitmq-1 StartedAt=2026-10-02T23:53:22.014370477Z
|
|
/mtusi-lab5-seaweedfs-1 StartedAt=2026-10-02T23:46:39.837097835Z
|
|
/mtusi-lab5-postgres-1 StartedAt=2026-10-02T23:46:39.850517882Z
|
|
/mtusi-lab5-valkey-1 StartedAt=2026-10-02T23:46:39.827928529Z
|
|
$ python3 tests/resilience.py --mode persistence --action-script scripts/restart.sh (Windows: restart.cmd)
|
|
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
|
|
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
|
|
# контейнеры после перезапуска:
|
|
/mtusi-lab5-api-1 StartedAt=2026-10-02T23:59:33.742707516Z
|
|
/mtusi-lab5-api-2 StartedAt=2026-10-02T23:59:32.383092893Z
|
|
/mtusi-lab5-worker-1 StartedAt=2026-10-02T23:59:28.718812327Z
|
|
/mtusi-lab5-rabbitmq-1 StartedAt=2026-10-02T23:59:29.238592291Z
|
|
/mtusi-lab5-seaweedfs-1 StartedAt=2026-10-02T23:59:29.413843719Z
|
|
/mtusi-lab5-postgres-1 StartedAt=2026-10-02T23:59:28.458564542Z
|
|
/mtusi-lab5-valkey-1 StartedAt=2026-10-02T23:59:29.099168068Z
|
|
$ python3 tests/resilience.py --mode failover --action-script scripts/stop-one.sh (1-я реплика)
|
|
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
|
|
{"observed_instances_before": 2, "successful_writes": 113, "failed_attempts": 0, "first_recovery_seconds": 2.328}
|
|
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
|
(2-я реплика)
|
|
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
|
|
{"observed_instances_before": 2, "successful_writes": 108, "failed_attempts": 0, "first_recovery_seconds": 2.328}
|
|
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
|
$ python -m unittest test_api.py
|
|
Ran 12 tests in 2.390s
|
|
OK
|
|
$ python -m unittest test_idempotency.py
|
|
Ran 9 tests in 1.971s
|
|
OK
|
|
$ python -m unittest test_attachments.py
|
|
Ran 11 tests in 5.686s
|
|
OK
|
|
$ python student-tests/test_pipeline.py (интерпретатор с Pillow: пиксельные проверки alpha -> белый фон)
|
|
Ran 9 tests in 10.648s
|
|
OK
|
|
$ python student-tests/test_topology.py
|
|
Ran 6 tests in 1.514s
|
|
OK
|
|
$ python student-tests/test_resilience5.py (окна отказа: worker/брокер/outbox/lease/retry/replay)
|
|
Ran 7 tests in 139.354s
|
|
OK
|