From 75862186ce666fc9a8d4c349c816caeb1e9cfd5b Mon Sep 17 00:00:00 2001 From: nikunis Date: Mon, 20 Nov 2023 13:23:42 +0500 Subject: [PATCH] fix entrypoint.sh --- docker/entrypoint.sh | 68 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 67 insertions(+), 1 deletion(-) diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index 1379ef13e..9b0bf244e 100644 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -2,9 +2,75 @@ set -ex +cd /test_dir/test && /usr/bin/odyssey_test + setup +# odyssey target session attrs test +/tsa/tsa.sh +if [ $? -eq 1 ] +then + exit 1 +fi + +ody-start +/config-validation +ody-stop + +#ldap +/ldap/test_ldap.sh +if [ $? -eq 1 ] +then + exit 1 +fi + +# scram +/scram/test_scram.sh +if [ $? -eq 1 ] +then + exit 1 +fi + +# auth query +/auth_query/test_auth_query.sh +if [ $? -eq 1 ] +then + exit 1 +fi + +# odyssey hba test +/hba/test.sh +if [ $? -eq 1 ] +then + exit 1 +fi + +#prepared statements in transaction pooling +/usr/bin/odyssey /etc/odyssey/pstmts.conf +sleep 1 +/pstmts-test + +ody-stop + +# lag polling +/lagpolling/test-lag.sh +if [ $? -eq 1 ] +then + exit 1 +fi + +/usr/bin/odyssey-asan /etc/odyssey/odyssey.conf +ody-stop + +# TODO: rewrite +#/shell-test/test.sh +/shell-test/console_role_test.sh +/shell-test/parse_pg_options_test.sh +/shell-test/override_pg_options_test.sh +ody-stop + +ody-start /ody-integration-test +ody-stop teardown -