From 7a96702a21010a7831d97afee03bd8c3583a6506 Mon Sep 17 00:00:00 2001 From: Mikhail Korotov Date: Wed, 22 Jan 2020 21:42:06 +0300 Subject: [PATCH] tests are added --- .../0_stateless/01071_http_header_exception_code.reference | 1 + .../0_stateless/01071_http_header_exception_code.sh | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 dbms/tests/queries/0_stateless/01071_http_header_exception_code.reference create mode 100755 dbms/tests/queries/0_stateless/01071_http_header_exception_code.sh 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'