mirror of
https://github.com/maplibre/martin.git
synced 2024-12-19 21:01:45 +03:00
Fix justfile ssl test, print hba config
This commit is contained in:
parent
8d7204c53d
commit
d1fe026639
6
justfile
6
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:
|
||||
|
6
tests/fixtures/initdb.sh
vendored
6
tests/fixtures/initdb.sh
vendored
@ -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;"
|
||||
|
Loading…
Reference in New Issue
Block a user