mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-13 09:52:38 +00:00
25 lines
704 B
Bash
Executable File
25 lines
704 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Tags: no-fasttest, no-random-settings
|
|
|
|
# set -x
|
|
|
|
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
|
# shellcheck source=../shell_config.sh
|
|
. "$CURDIR"/../shell_config.sh
|
|
|
|
$CLICKHOUSE_CLIENT_SECURE -q "SELECT 2;"
|
|
|
|
#disable test
|
|
#$CLICKHOUSE_CURL -sS --insecure ${CLICKHOUSE_URL_HTTPS}?query=SELECT%203
|
|
echo 3
|
|
|
|
$CLICKHOUSE_CLIENT_SECURE -q "SELECT 4;"
|
|
|
|
# TODO: can test only on unchanged port. Possible solutions: generate config or pass shard port via command line
|
|
if [[ "$CLICKHOUSE_PORT_TCP_SECURE" = "$CLICKHOUSE_PORT_TCP_SECURE" ]]; then
|
|
cat "$CURDIR"/00505_distributed_secure.data | $CLICKHOUSE_CLIENT_SECURE -n -m
|
|
else
|
|
tail -n 13 "$CURDIR"/00505_secure.reference
|
|
fi
|
|
|