Add test for --no-secure

This commit is contained in:
Mikhail f. Shiryaev 2024-03-18 16:23:07 +01:00
parent 55f7595c43
commit 463b90e058
No known key found for this signature in database
GPG Key ID: 4B02ED204C7D93F4
2 changed files with 3 additions and 0 deletions

View File

@ -1,3 +1,4 @@
0
1
2
3

View File

@ -7,6 +7,8 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
# shellcheck source=../shell_config.sh
. "$CURDIR"/../shell_config.sh
$CLICKHOUSE_CLIENT --no-secure -q "SELECT 0;"
# Use $CLICKHOUSE_CLIENT_SECURE, but replace `--secure` by `-s` to test it
CLICKHOUSE_CLIENT_S=${CLICKHOUSE_CLIENT_SECURE/ --secure / -s }
$CLICKHOUSE_CLIENT_S -q "SELECT 1;"