forked from mtusi2026/mtusi2026lab7
lab 7
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Acceptance suite; lifecycle and persistence are intentionally explicit operations."""
|
||||
|
||||
import subprocess
|
||||
from pathlib import Path
|
||||
|
||||
root = Path(__file__).resolve().parents[1]
|
||||
python = str(root / ".venv/bin/python") if (root / ".venv/bin/python").exists() else "python3"
|
||||
|
||||
|
||||
def run(*args):
|
||||
subprocess.run(args, cwd=root, check=True)
|
||||
|
||||
|
||||
run("make", "check", "validate", "lint", "PYTHON=" + python)
|
||||
run("docker", "compose", "config", "--quiet")
|
||||
run("make", "test", "test-security", "PYTHON=" + python)
|
||||
run(python, "tests/lab7_security.py")
|
||||
run(python, "tests/lab7_lifecycle.py")
|
||||
run(python, "tests/lab7_s3_rotation.py")
|
||||
run(python, "tests/lab7_audit.py")
|
||||
print("PASS: lab7 acceptance; run documented persistence and both failovers separately.")
|
||||
Reference in New Issue
Block a user