lab4 s3 lvl4

This commit is contained in:
2026-11-01 01:18:40 +03:00
parent ec540a1a72
commit 6c0a3d8912
27 changed files with 1945 additions and 0 deletions
+17
View File
@@ -28,3 +28,20 @@ test-persistence:
test-failover:
@test -n "$(ACTION_SCRIPT)" || (echo "Set ACTION_SCRIPT to your implemented executable stop-one hook"; exit 2)
$(PYTHON) tests/resilience.py --mode failover --action-script "$(ACTION_SCRIPT)" --base-url "$(BASE_URL)" $(TLS_ARGS)
# ---- student additions (lab4); public targets above are unchanged ----
.PHONY: test-lab3 test-level4 check-s3 sweep-dry memory rolling-restart
test-lab3:
$(PYTHON) student-tests/lab3_idempotency_checks.py --base-url "$(BASE_URL)"
test-level4:
$(PYTHON) student-tests/level4_checks.py --base-url "$(BASE_URL)"
$(PYTHON) -m unittest discover -s student-tests -p "test_*.py"
check-s3:
sh scripts/check_s3_exposure.sh
docker compose run --rm --no-deps --entrypoint python api scripts/check_s3_private.py
sweep-dry:
docker compose run --rm --no-deps s3_sweeper python scripts/s3_sweep.py --grace-seconds 3600
memory:
$(PYTHON) student-tests/memory_experiment.py --base-url "$(BASE_URL)" --concurrency 10
rolling-restart:
sh scripts/rolling-restart.sh