31 lines
2.1 KiB
Plaintext
31 lines
2.1 KiB
Plaintext
date: 2026-11-05T19:25:11.998157+00:00 commit: 252e3e3ffeea5004cfd9dc342e686af1417a77a2
|
|
NO_PROXY=localhost,127.0.0.1,::1 COMPOSE_PROJECT_NAME=mtusi2026lab3-grade4-20261105 LB_HTTP_PORT=18083 LB_STATS_PORT=23083 API_REPLICAS=2
|
|
$ sh -ec 'make test; make test-persistence ACTION_SCRIPT=scripts/restart.sh; make test-failover ACTION_SCRIPT=scripts/stop-one.sh; docker compose ps -a --format "{{.ID}} {{.Service}} {{.Status}}"; make restore; make test'
|
|
python3 tests/smoke.py --base-url "http://127.0.0.1:18083"
|
|
PASS: lab3 public API scenario; infrastructure and grading evidence remain separate.
|
|
python3 tests/resilience.py --mode persistence --action-script "scripts/restart.sh" --base-url "http://127.0.0.1:18083"
|
|
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
|
|
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
|
|
python3 tests/resilience.py --mode failover --action-script "scripts/stop-one.sh" --base-url "http://127.0.0.1:18083"
|
|
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
|
|
{"observed_instances_before": 2, "successful_writes": 128, "failed_attempts": 0, "first_recovery_seconds": 2.704}
|
|
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
|
96493b9901ab api Up 19 seconds (healthy)
|
|
dc1e7ee36921 api Exited (0) 12 seconds ago
|
|
4f83577b3411 lb Up 20 seconds (healthy)
|
|
ad30cd539e85 migrate Exited (0) 19 seconds ago
|
|
f225c6cd77bb postgres Up 21 seconds (healthy)
|
|
5e3ed0a9a35a valkey Up 21 seconds (healthy)
|
|
scripts/restore.sh
|
|
Container mtusi2026lab3-grade4-20261105-api-5 Running
|
|
Container mtusi2026lab3-grade4-20261105-api-6 Starting
|
|
Container mtusi2026lab3-grade4-20261105-api-6 Started
|
|
Container mtusi2026lab3-grade4-20261105-api-6 Waiting
|
|
Container mtusi2026lab3-grade4-20261105-api-5 Waiting
|
|
Container mtusi2026lab3-grade4-20261105-api-6 Healthy
|
|
Container mtusi2026lab3-grade4-20261105-api-5 Healthy
|
|
python3 tests/smoke.py --base-url "http://127.0.0.1:18083"
|
|
PASS: lab3 public API scenario; infrastructure and grading evidence remain separate.
|
|
|
|
exit: 0 elapsed_seconds: 28.513
|