ClickHouse/dbms/tests/queries/0_stateless/01071_http_header_exception_code.sh
Mikhail Korotov b9b1dd5cdd tests fixed
2020-01-24 17:08:56 +03:00

10 lines
269 B
Bash
Executable File

#!/usr/bin/env bash
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
. $CURDIR/../shell_config.sh
if [[ `${CLICKHOUSE_CURL_COMMAND} -I "${CLICKHOUSE_URL}&query=BADREQUEST" 2>&1 | grep -c 'X-ClickHouse-Exception-Code: 62'` -eq 1 ]]; then
echo "True"
fi
exit 0