30 lines
1.1 KiB
Python
30 lines
1.1 KiB
Python
from pathlib import Path
|
|
|
|
|
|
WORKFLOW = Path(".gitea/workflows/self-healing-smoke.yml")
|
|
|
|
|
|
def _content() -> str:
|
|
return WORKFLOW.read_text()
|
|
|
|
|
|
def test_self_healing_workflow_exists() -> None:
|
|
assert WORKFLOW.exists()
|
|
|
|
|
|
def test_self_healing_workflow_checks_phase2_artifacts() -> None:
|
|
content = _content()
|
|
assert "name: Self-Healing Smoke" in content
|
|
assert "pull_request:" in content
|
|
assert "push:" in content
|
|
assert "branches: [main]" in content
|
|
assert "actions/checkout@v4" in content
|
|
assert "actions/setup-python@v5" in content
|
|
assert "bash -n scripts/fleet_health_probe.sh" in content
|
|
assert "bash -n scripts/auto_restart_agent.sh" in content
|
|
assert "bash -n scripts/backup_pipeline.sh" in content
|
|
assert "python3 -m py_compile uni-wizard/daemons/health_daemon.py" in content
|
|
assert "python3 -m py_compile scripts/fleet_milestones.py" in content
|
|
assert "python3 -m py_compile scripts/sovereign_health_report.py" in content
|
|
assert "pytest -q tests/docs/test_self_healing_infrastructure.py tests/docs/test_self_healing_ci.py" in content
|