Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
sommerf-lf opened this issue Oct 1, 2024 · 0 comments · Fixed by #32105
Closed
Labels
topic/build PR changes how Gitea is built, i.e. regarding Docker or the Makefile type/testing

Comments

@sommerf-lf
Copy link
Contributor

sommerf-lf commented 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

f4b8f6f

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

@sommerf-lf sommerf-lf changed the title can't run pgsql integration tests locally can't run pgsql integration tests locally: postgres docker container wrong start argument Oct 1, 2024
@lunny lunny added type/testing topic/build PR changes how Gitea is built, i.e. regarding Docker or the Makefile and removed type/bug labels Oct 2, 2024
@lunny lunny closed this as completed in 0b1b403 Oct 3, 2024
@go-gitea go-gitea locked as resolved and limited conversation to collaborators Jan 1, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
topic/build PR changes how Gitea is built, i.e. regarding Docker or the Makefile type/testing
Projects
None yet
2 participants