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

10 lines
307 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-12-28 11:46:53 +00:00
# shellcheck source=../shell_config.sh
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