diff --git a/dbms/tests/queries/0_stateless/01071_http_header_exception_code.reference b/dbms/tests/queries/0_stateless/01071_http_header_exception_code.reference new file mode 100644 index 00000000000..eeeba3b9795 --- /dev/null +++ b/dbms/tests/queries/0_stateless/01071_http_header_exception_code.reference @@ -0,0 +1 @@ +X-ClickHouse-Exception-Code: 62 diff --git a/dbms/tests/queries/0_stateless/01071_http_header_exception_code.sh b/dbms/tests/queries/0_stateless/01071_http_header_exception_code.sh new file mode 100755 index 00000000000..590876734f0 --- /dev/null +++ b/dbms/tests/queries/0_stateless/01071_http_header_exception_code.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +set -e + +CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) +. $CURDIR/../shell_config.sh + +${CLICKHOUSE_CURL_COMMAND} -I -sSg "${CLICKHOUSE_URL}&query=BADREQUEST" | grep -o 'X-ClickHouse-Exception-Code: 62'