From d4cf8052296b89910a73288272cbe4ea7fd4ee36 Mon Sep 17 00:00:00 2001 From: Yang Xiufeng Date: Tue, 22 Oct 2024 21:13:29 +0800 Subject: [PATCH] ci: cli test use env DATABEND_PORT. --- cli/test.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cli/test.sh b/cli/test.sh index f4e4e3f10..701f17ebb 100755 --- a/cli/test.sh +++ b/cli/test.sh @@ -20,6 +20,7 @@ CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-./target} DATABEND_USER=${DATABEND_USER:-root} DATABEND_PASSWORD=${DATABEND_PASSWORD:-} DATABEND_HOST=${DATABEND_HOST:-localhost} +DATABEND_PORT=${DATABEND_HOST:-8000} TEST_HANDLER=$1 @@ -32,7 +33,7 @@ case $TEST_HANDLER in ;; "http") echo "==> Testing REST API handler" - export BENDSQL_DSN="databend+http://${DATABEND_USER}:${DATABEND_PASSWORD}@${DATABEND_HOST}:8000/?sslmode=disable&presign=on" + export BENDSQL_DSN="databend+http://${DATABEND_USER}:${DATABEND_PASSWORD}@${DATABEND_HOST}:{DATABEND_PORT}/?sslmode=disable&presign=on" ;; *) echo "Usage: $0 [flight|http]"