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

9 lines
268 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)
2020-08-01 00:51:12 +00:00
. "$CURDIR"/../shell_config.sh
2020-01-22 18:42:06 +00:00
if [[ $(${CLICKHOUSE_CURL_COMMAND} -q -I "${CLICKHOUSE_URL}&query=BADREQUEST" 2>&1 | grep -c 'X-ClickHouse-Exception-Code: 62') -eq 1 ]]; then
2020-01-24 14:08:56 +00:00
echo "True"
fi