forked from mtusi2026/mtusi2026lab3
42 lines
3.9 KiB
Plaintext
42 lines
3.9 KiB
Plaintext
Lab 3 verification 2026-12-01T15:43:51.9945339+03:00
|
|
PASS: Compose startup, public entrypoint http://127.0.0.1:8083
|
|
python 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:8083
|
|
PASS: lab3 public API scenario; infrastructure and grading evidence remain separate.
|
|
python tests/student_tests.py --base-url http://127.0.0.1:8083
|
|
PASS: validation, Unicode Basic login, access, pagination and logout
|
|
python tests/contract_edge_tests.py --base-url http://127.0.0.1:8083
|
|
PASS: 22 Lab 2 contract edge-case HTTP checks
|
|
python tests/lab3_tests.py --base-url http://127.0.0.1:8083 --restart-script scripts/restart.cmd
|
|
{"parallel_requests": 16, "instances": ["api1", "api2"], "messages_created": 1}
|
|
PASS: same session and exact Message replay after full-stack restart
|
|
PASS: concurrent replay, normalized JSON, key scope, conflict, invalid key, access, uncertain response and logout
|
|
python scripts/operator_state.py --save C:\Users\Asus\AppData\Local\Temp\5ed503a4-a237-45b7-b23a-cfd65dbcba44.json
|
|
{"services": {"api1": {"id": "b14183c8c5e2", "started": "2026-12-01T12:44:24.518932806Z"}, "api2": {"id": "3316cf1579ba", "started": "2026-12-01T12:44:24.52044701Z"}, "db": {"id": "533f4913ec8b", "started": "2026-12-01T12:44:20.573632868Z"}, "lb": {"id": "895a6a1efc90", "started": "2026-12-01T12:44:30.298876773Z"}}, "volume": "mtusi-lab3_pgdata", "volume_created": "2026-12-01T12:43:56Z"}
|
|
PASS: migrations 001 and 002 each installed exactly once; only LB publishes a host port
|
|
python tests/resilience.py --mode persistence --base-url http://127.0.0.1:8083 --action-script scripts/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.
|
|
python scripts/operator_state.py --compare C:\Users\Asus\AppData\Local\Temp\5ed503a4-a237-45b7-b23a-cfd65dbcba44.json
|
|
{"services": {"api1": {"id": "b14183c8c5e2", "started": "2026-12-01T12:44:45.879307353Z"}, "api2": {"id": "3316cf1579ba", "started": "2026-12-01T12:44:45.87734148Z"}, "db": {"id": "533f4913ec8b", "started": "2026-12-01T12:44:41.92745116Z"}, "lb": {"id": "895a6a1efc90", "started": "2026-12-01T12:44:51.660854445Z"}}, "volume": "mtusi-lab3_pgdata", "volume_created": "2026-12-01T12:43:56Z"}
|
|
PASS: both APIs, LB and PostgreSQL restarted; same persistent volume retained
|
|
PASS: migrations 001 and 002 each installed exactly once; only LB publishes a host port
|
|
python tests/resilience.py --mode failover --base-url http://127.0.0.1:8083 --action-script scripts/stop-one.cmd
|
|
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
|
|
{"observed_instances_before": 2, "successful_writes": 83, "failed_attempts": 3, "first_recovery_seconds": 3.106}
|
|
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
|
PASS: api1 really stopped; the other API, LB and database stayed running
|
|
PASS: both replicas observed through LB
|
|
python tests/failover_each.py --base-url http://127.0.0.1:8083 --action-script scripts/stop-one.cmd --restore-script scripts/restore.cmd
|
|
PASS: api1 really stopped; the other API, LB and database stayed running
|
|
PASS: both replicas observed through LB
|
|
PASS: api2 really stopped; the other API, LB and database stayed running
|
|
PASS: both replicas observed through LB
|
|
{"stopped": "api1", "observed_before": ["api1", "api2"], "survivors": ["api2"], "writes": 20, "errors": 3, "recovery_seconds": 2.08}
|
|
{"stopped": "api2", "observed_before": ["api1", "api2"], "survivors": ["api1"], "writes": 16, "errors": 3, "recovery_seconds": 2.983}
|
|
PASS: stopping either replica preserved sessions, reads, writes and idempotency
|
|
python tests/smoke.py --base-url http://127.0.0.1:8083
|
|
PASS: lab3 public API scenario; infrastructure and grading evidence remain separate.
|
|
PASS: full Lab 3 verification completed
|