forked from mtusi2026/mtusi2026lab7
23 lines
769 B
Python
23 lines
769 B
Python
#!/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.")
|