test(15-04): prove journal migrate-admin-list-write-draft path on Postgres

- Add TestJournalEndToEnd through party/surf/cabana on real Postgres
- Extract the admin harness and activate user+translate+journal in Requires order
- Anonymous list hides drafts; Bearer writes; JOURNAL-005 404 has no data key

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Jakub Zych
2026-10-06 19:11:52 +02:00
parent bdd1c1be61
commit c5b44b6a5d
7 changed files with 580 additions and 293 deletions

View File

@@ -136,6 +136,11 @@ func dedicatedDB(t *testing.T, name string) *sql.DB {
// proof lives in package models.
func TestPostTranslatableSmoke(t *testing.T) {}
// TestJournalEndToEnd keeps `go test ./... -run TestJournalEndToEnd`
// from reporting [no tests to run] in this package. The production-path
// proof lives in package journal_test.
func TestJournalEndToEnd(t *testing.T) {}
func TestJournalTables(t *testing.T) {
sqlDB := dedicatedDB(t, "journal_tables")
gdb, err := lagoon.Use(t.Context(), sqlDB)