Fix justfile ssl test, print hba config

This commit is contained in:
Yuri Astrakhan 2023-09-30 12:03:23 -04:00
parent 8d7204c53d
commit d1fe026639
2 changed files with 9 additions and 3 deletions

View File

@ -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:

View File

@ -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;"