You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Postgres host port for docker-compose (optional). Default: 5432. Override only if 5432 is in use (e.g. POSTGRES_PORT=5433); keep DATABASE_URL in sync.
11
11
# POSTGRES_PORT=5432
12
12
13
+
# Hub image tag for docker-compose migration container (optional). Default: 0.2.0.
14
+
# Use a pinned release tag, not latest, so migration tooling is reproducible.
15
+
# HUB_IMAGE_TAG=0.2.0
16
+
13
17
# Database connection URL (optional). Port must match POSTGRES_PORT when you override it.
Copy file name to clipboardExpand all lines: tests/README.md
+3-4Lines changed: 3 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,10 +6,9 @@ This directory contains integration tests for the Formbricks Hub API.
6
6
7
7
Before running the tests, ensure:
8
8
9
-
1.**PostgreSQL is running** (e.g. `make docker-up`). `make docker-up` starts dependency containers, currently PostgreSQL and River UI; it does not start the Hub API or worker. The tests use the connection string from `.env` (`DATABASE_URL`) when set; if empty, the default `postgres://postgres:postgres@localhost:5432/test_db?sslmode=disable` is used. If you set `POSTGRES_PORT` in `.env`, keep `DATABASE_URL` in sync. If you see `password authentication failed for user "postgres"`, start the stack with `make docker-up` and run `make init-db`.
10
-
2.**Database schema** has been initialized (`make init-db`).
11
-
3.**River queue migrations** have been applied (`make river-migrate`) when testing worker-backed webhook delivery flows.
12
-
4.**API_KEY** is set automatically by the tests; you do not need to set it.
9
+
1.**PostgreSQL is running** (e.g. `make docker-up`). `make docker-up` starts dependency containers: PostgreSQL, the one-shot `hub-migrate` container, and River UI; it does not start the Hub API or worker. The tests use the connection string from `.env` (`DATABASE_URL`) when set; if empty, the default `postgres://postgres:postgres@localhost:5432/test_db?sslmode=disable` is used. If you set `POSTGRES_PORT` in `.env`, keep `DATABASE_URL` in sync.
10
+
2.**Database schema and River queue migrations** have been initialized. The default `make docker-up` path runs them through the packaged `hub-migrate` container, using this checkout's `migrations/` directory. If you are editing local migration files after the stack is already running, run `make init-db` and `make river-migrate` against your test database.
11
+
3.**API_KEY** is set automatically by the tests; you do not need to set it.
0 commit comments