- harness/generic.py: recipe-agnostic assert_serving (converged + real HTTP, 404-excluded + not Traefik 404 body + CA-verified trusted wildcard cert), op helpers, backup_capable detect - harness/discovery.py: per-op overlay resolution (repo-local > cc-ci > generic), custom + hook - tests/_generic/: assertion-only tiers (install/upgrade/backup/restore) on the shared deployment - run_recipe_ci.py: deploy-ONCE orchestrator, per-op summary, deploy-count guard (DG4.1) - conftest live_app fixture; lifecycle deploy-count + install-steps hook + pin DOMAIN to run domain DG1 cold-verified green on hedgedoc (pure generic, deploy-count=1, clean teardown). G0 CLAIMED. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
18 lines
780 B
Python
18 lines
780 B
Python
"""Generic BACKUP tier (Phase 1d DG3) — recipe-agnostic, backup-capable recipes only.
|
|
|
|
Runs `abra app backup create` against the shared live deployment and asserts a snapshot artifact is
|
|
produced (abra app backup snapshots is non-empty). Honest limit: the generic verifies the backup
|
|
MECHANISM, not app-specific data integrity — that's a recipe overlay (test_backup.py seeds a marker).
|
|
For recipes that declare no backup config the orchestrator skips this tier as N/A (not a failure)."""
|
|
|
|
import os
|
|
import sys
|
|
|
|
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", "..", "runner"))
|
|
from harness import generic # noqa: E402
|
|
|
|
|
|
def test_backup_artifact(live_app, meta):
|
|
snaps = generic.do_backup(live_app)
|
|
assert snaps, "backup produced no snapshot artifact"
|