lab7: исправления по прогону своих тестов (таймаут Valkey с TLS 1,0 с, проверки по alias, GET вместо EXISTS), черновик REPORT, сборщик доказательств

This commit is contained in:
Alexey Bodanyuk
2026-11-28 01:33:01 +03:00
parent 84dbdb4735
commit b3ddcf25dc
6 changed files with 167 additions and 23 deletions
+2 -2
View File
@@ -154,11 +154,11 @@ def main() -> int:
["docker", "compose", "ps", "-a", "--format", "{{.Name}} {{.State}} {{.Status}}"], timeout=600)
failover_both()
argon2_bench()
step("Телеметрия по mTLS: trace + logs", "trace-demo.txt", [PY, "scripts/trace_demo.py", "--output", str(EVIDENCE / "trace-demo-raw.txt")])
step("Телеметрия по mTLS: trace + logs", "trace-demo.txt", [PY, "scripts/trace_demo.py"])
step("Dashboard: все запросы через Grafana (HTTPS)", "dashboard-check.txt", [PY, "scripts/check_dashboard.py"])
if not args.skip_student_tests:
step("Свои тесты (unit + стенд, в т.ч. test_security.py)", "student-tests.txt",
[PY, "-m", "pytest", "student-tests", "-v", "-p", "no:cacheprovider", "--durations=15"], timeout=5400)
[PY, "-m", "pytest", "student-tests", "-v", "-p", "no:cacheprovider", "--durations=15"], timeout=14400)
lines = ["# Сводка доказательств lab7", "", f"Собрано: {dt.datetime.now(dt.timezone.utc).isoformat(timespec='seconds')}", "",
"| Шаг | Команда | Код | Файл | Время, с |", "| --- | --- | --- | --- | --- |"]
for title, command, code, filename, elapsed in results: