2018-03-29 01:41:06 +00:00
|
|
|
#!/usr/bin/env bash
|
2022-03-21 18:01:55 +00:00
|
|
|
# Tags: no-fasttest, no-random-settings
|
2018-03-29 01:41:06 +00:00
|
|
|
|
2018-06-18 21:13:11 +00:00
|
|
|
# set -x
|
2018-05-28 20:38:46 +00:00
|
|
|
|
2018-03-29 01:41:06 +00:00
|
|
|
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
2020-12-28 11:46:53 +00:00
|
|
|
# shellcheck source=../shell_config.sh
|
2020-08-01 00:51:12 +00:00
|
|
|
. "$CURDIR"/../shell_config.sh
|
2018-03-29 01:41:06 +00:00
|
|
|
|
2020-02-21 19:00:32 +00:00
|
|
|
$CLICKHOUSE_CLIENT_SECURE -q "SELECT 2;"
|
2018-05-28 20:38:46 +00:00
|
|
|
|
2020-02-22 01:35:28 +00:00
|
|
|
#disable test
|
|
|
|
#$CLICKHOUSE_CURL -sS --insecure ${CLICKHOUSE_URL_HTTPS}?query=SELECT%203
|
|
|
|
echo 3
|
2018-03-29 01:41:06 +00:00
|
|
|
|
2020-02-21 19:00:32 +00:00
|
|
|
$CLICKHOUSE_CLIENT_SECURE -q "SELECT 4;"
|
2018-03-29 01:41:06 +00:00
|
|
|
|
2020-02-21 19:00:32 +00:00
|
|
|
# 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
|
2020-08-01 00:52:41 +00:00
|
|
|
cat "$CURDIR"/00505_distributed_secure.data | $CLICKHOUSE_CLIENT_SECURE -n -m
|
2020-02-21 19:00:32 +00:00
|
|
|
else
|
2020-08-01 00:52:41 +00:00
|
|
|
tail -n 13 "$CURDIR"/00505_secure.reference
|
2018-03-29 01:41:06 +00:00
|
|
|
fi
|
2020-02-21 19:00:32 +00:00
|
|
|
|