nixosTests.pgjwt: fix test

This seems to have broken years ago, because "CREATE EXTENSION
pgcrypto;" etc. were added to the upstream file about 6 years ago.
This commit is contained in:
Wolfgang Walther 2024-11-02 19:19:08 +01:00
parent 3bf6a063b3
commit d3feaaebea
No known key found for this signature in database
GPG Key ID: B39893FA5F65CAE1

View File

@ -26,10 +26,7 @@ with pkgs; {
start_all() start_all()
master.wait_for_unit("postgresql") master.wait_for_unit("postgresql")
master.succeed( master.succeed(
"${pkgs.gnused}/bin/sed -e '12 i CREATE EXTENSION pgcrypto;\\nCREATE EXTENSION pgtap;\\nSET search_path TO tap,public;' ${pgjwt.src}/test.sql > /tmp/test.sql" "${pkgs.sudo}/bin/sudo -u ${sqlSU} ${pgProve}/bin/pg_prove -d postgres -v -f ${pgjwt.src}/test.sql"
)
master.succeed(
"${pkgs.sudo}/bin/sudo -u ${sqlSU} PGOPTIONS=--search_path=tap,public ${pgProve}/bin/pg_prove -d postgres -v -f /tmp/test.sql"
) )
''; '';
}) })