hapi migrate and the shared test harness
#76
Notifications
Due Date
No due date set.
Blocks
Depends on
#160 Production image with smoke test
bobby/hapi
#162 Encrypted database backup
bobby/hapi
Reference: bobby/hapi#76
Reference in new issue
Block a user
Part of #73 (spec: #72)
What to build
hapi migrateapplies a single linear Alembic history, using a strict constraint naming convention, ashapi_migrator. Every later ticket inherits a test harness: a testcontainers Postgres 18 prepared by the samehapi db bootstrapandhapi migrateas prod, the app connecting ashapi_app, each test rolled back, a pinned clock the app depends on, and in-process invocation of thehapiCLI.Acceptance criteria
hapi migrateupgrades an empty bootstrapped database to head and is a no-op at headjust migrateandjust testwork locallyhttpx.AsyncClient+ASGITransportand calling the CLI in-process