- harness: services_converged treats replicas:0 one-shot (minio-createbuckets) as converged (cur==want); removes the want==0 rejection that hung deploys. DECISIONS.md. - recipe_meta.EXTRA_ENV flattens MINIO_DOMAIN/COLLABORA_DOMAIN to single-label wildcard siblings (the *.ci.commoninternet.net cert covers one label only). DECISIONS.md. - lifecycle overlays (install/upgrade/backup/restore) + ops.py postgres ci_marker data-integrity (db user/name=drive). Parity health_check functional test. PARITY.md. - DEPS=[keycloak] + OIDC/WOPI/upload functional tests deferred to the SSO iteration (probe-before-assert: prove the ~10-service base deploy converges first). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
24 lines
940 B
Python
24 lines
940 B
Python
"""lasuite-drive — BACKUP overlay (Phase 1e HC3): assertion-only + additive.
|
|
|
|
ops.pre_backup wrote "original" into postgres before the backup op (pg_backup.sh dumps the DB); the
|
|
orchestrator performed the backup once (generic tier asserted a snapshot artifact). This overlay
|
|
ADDS: the seeded row is intact at backup time. The backup→restore divergence (dropping the table) is
|
|
in ops.pre_restore."""
|
|
|
|
import os
|
|
import sys
|
|
|
|
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", "..", "runner"))
|
|
from harness import lifecycle # noqa: E402
|
|
|
|
|
|
def _psql(domain, sql):
|
|
cmd = f'PGPASSWORD=$(cat /run/secrets/postgres_p) psql -U drive -d drive -tAc "{sql}"'
|
|
return lifecycle.exec_in_app(domain, ["sh", "-c", cmd], service="db").strip()
|
|
|
|
|
|
def test_backup_captures_state(live_app):
|
|
assert (
|
|
_psql(live_app, "SELECT v FROM ci_marker;") == "original"
|
|
), "the seeded postgres state was not present at backup time"
|