This commit is contained in:
parent
17e78db3d3
commit
1059950122
@ -15,8 +15,7 @@ def test_postgres_running_and_enabled(host):
|
|||||||
|
|
||||||
def test_postgres_auth(host):
|
def test_postgres_auth(host):
|
||||||
login = host.run(
|
login = host.run(
|
||||||
"source /etc/containers/systemd/postgres.env;"
|
"podman exec --env PGPASSWORD=postgres systemd-postgres psql -Upostgres -c 'select 1' -q postgres" # noqa :E501
|
||||||
"podman exec --env PGPASSWORD=$POSTGRES_PASSWORD systemd-postgres psql -U$POSTGRES_USER -c 'select 1' -q $POSTGRES_DB" # noqa :E501
|
|
||||||
)
|
)
|
||||||
assert login.succeeded
|
assert login.succeeded
|
||||||
|
|
||||||
|
@ -8,5 +8,5 @@ POSTGRES_DB={{ postgres_db }}
|
|||||||
POSTGRES_HOST_AUTH_METHOD={{ postgres_host_auth_method }}
|
POSTGRES_HOST_AUTH_METHOD={{ postgres_host_auth_method }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if postgres_initdb_args | length > 0 %}
|
{% if postgres_initdb_args | length > 0 %}
|
||||||
POSTGRES_INITDB_ARGS="{{ postgres_initdb_args | join(' ') }}"
|
POSTGRES_INITDB_ARGS={{ postgres_initdb_args | join(" ") }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
Reference in New Issue
Block a user