ClickHouse/tests/queries/0_stateless/01071_http_header_exception_code.sh

9 lines
262 B
Bash
Raw Normal View History

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