diff --git a/justfile b/justfile index 696b323a..08799320 100644 --- a/justfile +++ b/justfile @@ -81,14 +81,14 @@ bench-http: (cargo-install "oha") oha -z 120s http://localhost:3000/function_zxy_query/18/235085/122323 # Run all tests using a test database -test: (docker-up "db") test-unit test-int +test: start test-unit test-int # Run all tests using an SSL connection to a test database. Expected output won't match. -test-ssl: (docker-up "ssl") test-unit clean-test +test-ssl: start-ssl test-unit clean-test tests/test.sh # Run all tests using the oldest supported version of the database -test-legacy: (docker-up "db-legacy") test-unit test-int +test-legacy: start-legacy test-unit test-int # Run Rust unit and doc tests (cargo test) test-unit *ARGS: diff --git a/tests/fixtures/initdb.sh b/tests/fixtures/initdb.sh index e6c556f2..20bb4561 100755 --- a/tests/fixtures/initdb.sh +++ b/tests/fixtures/initdb.sh @@ -33,3 +33,9 @@ echo "########################################################################## for sql_file in "$FIXTURES_DIR"/functions/*.sql; do psql -e -P pager=off -v ON_ERROR_STOP=1 -f "$sql_file" done + +echo -e "\n\n\n" +echo "################################################################################################" +echo "Active pg_hba.conf configuration" +echo "################################################################################################" +psql -P pager=off -v ON_ERROR_STOP=1 -c "select * from pg_hba_file_rules;"