can't run pgsql integration tests locally: postgres docker container wrong start argument #13551

Closed
opened 2025-11-02 10:45:48 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @sommerf-lf on GitHub (Oct 1, 2024).

Description

When running integration test pgsql (tests/integration/README.md) the described config the docker start command (to manually run) is not up to date and errors in: You must specify POSTGRES_PASSWORD to a non-empty value for the superuser
Command:
docker run -e "POSTGRES_DB=test" -p 5432:5432 --rm --name pgsql postgres:latest

to then (out of this scope) run:
TEST_PGSQL_HOST=localhost:5432 TEST_PGSQL_DBNAME=test TEST_PGSQL_USERNAME=postgres TEST_PGSQL_PASSWORD=postgres make test-pgsql

Gitea Version

f4b8f6fc

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

image

Git Version

No response

Operating System

Linux/Ubuntu

How are you running Gitea?

dev environment

Database

PostgreSQL

Originally created by @sommerf-lf on GitHub (Oct 1, 2024). ### Description When running integration test pgsql (tests/integration/README.md) the described config the docker start command (to manually run) is not up to date and errors in: _You must specify POSTGRES_PASSWORD to a non-empty value for the superuser_ Command: `docker run -e "POSTGRES_DB=test" -p 5432:5432 --rm --name pgsql postgres:latest` to then (out of this scope) run: `TEST_PGSQL_HOST=localhost:5432 TEST_PGSQL_DBNAME=test TEST_PGSQL_USERNAME=postgres TEST_PGSQL_PASSWORD=postgres make test-pgsql` ### Gitea Version f4b8f6fc ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots ![image](https://github.com/user-attachments/assets/d1b43807-80c5-46ea-8a2b-6f1c1a6d2359) ### Git Version _No response_ ### Operating System Linux/Ubuntu ### How are you running Gitea? dev environment ### Database PostgreSQL
GiteaMirror added the type/testingtopic/build labels 2025-11-02 10:45:48 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#13551