Live-Postgres tests: exercise the pending-link methods; add a standing live run #4
Loading…
Reference in a new issue
No description provided.
Delete branch "heimdall/live-pg-exercise-pending-links"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Two tests in
tests/store.test.ts("startup against a live Postgres") fail on main when run against a real Postgres. They skip withoutHEIMDALL_TEST_PG_ADMIN_URL, so the defaultvitest runnever showed it.Cause.
exerciseStoreis the probe that calls everyPostgresStoremethod.createPendingLink,consumePendingLinkandfindAuthCompletion(PRs #1/#2) were never added to it.pending_linkswas revoked, because nothing touched that table.The store and the privilege table (
pending_links: SELECT, INSERT, UPDATE) were right; only the probe was behind.Fix. Call the three methods in
exerciseStore.Standing run.
scripts/test-live-pg.shstarts a throwaway cluster, setsHEIMDALL_TEST_PG_ADMIN_URLandSOUL_PG_URL, runs the full suite, and removes the cluster. Result: 28 files passed, 716 tests passed, 10 skipped. The skips are not Postgres: uid, bundle-boot and a presence guard. Needsinitdb/pg_ctl(PG_BINoverrides the path). Not wired into the Idunn recipe: that needs PG server binaries on the builder, which is a deployment call.No deploy.
🤖 Generated with Claude Code