Skip to content

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

Closed
@sommerf-lf

Description

@sommerf-lf

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic/buildPR changes how Gitea is built, i.e. regarding Docker or the Makefiletype/testing

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions