ClickHouse/dbms/tests/queries/0_stateless/00505_tcp_ssl.sh

17 lines
481 B
Bash
Raw Normal View History

2017-09-29 18:21:26 +00:00
#!/usr/bin/env bash
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
. $CURDIR/../shell_config.sh
# Not default server config needed
tcp_ssl_port=`${CLICKHOUSE_EXTRACT_CONFIG} -k tcp_ssl_port 2>/dev/null`
2017-10-02 13:19:16 +00:00
if [ -z ${tcp_ssl_port} ]; then
2017-09-29 18:21:26 +00:00
# Secure port disabled. Fake result
cat $CURDIR/00505_tcp_ssl.reference
2017-09-29 18:21:26 +00:00
else
# Auto port detect
${CLICKHOUSE_CLIENT} --ssl -q "SELECT 1";
${CLICKHOUSE_CLIENT} --ssl --port=${CLICKHOUSE_PORT_TCP_SSL} -q "SELECT 2";
2017-09-29 18:21:26 +00:00
fi