Skip to content

Commit

Permalink
ci: cli test use env DATABEND_PORT.
Browse files Browse the repository at this point in the history
  • Loading branch information
youngsofun committed Oct 22, 2024
1 parent a69419e commit d4cf805
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cli/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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]"
Expand Down

0 comments on commit d4cf805

Please sign in to comment.