From 1bda1bc839433cdbc820e71dc12c5d854ccaa045 Mon Sep 17 00:00:00 2001 From: Yakov Olkhovskiy Date: Tue, 16 Jan 2024 22:53:16 +0000 Subject: [PATCH] test is added --- .../0_stateless/02967_http_compressed.reference | Bin 0 -> 210 bytes .../queries/0_stateless/02967_http_compressed.sh | 12 ++++++++++++ 2 files changed, 12 insertions(+) create mode 100644 tests/queries/0_stateless/02967_http_compressed.reference create mode 100755 tests/queries/0_stateless/02967_http_compressed.sh diff --git a/tests/queries/0_stateless/02967_http_compressed.reference b/tests/queries/0_stateless/02967_http_compressed.reference new file mode 100644 index 0000000000000000000000000000000000000000..7e35b75d666075b5a1fe56891155f1a88b98d170 GIT binary patch literal 210 tcmezUZ0X(VAMYk5>e;S7Ez}azB+S6TzzM_?3^|QBjX6z>xPA{UB>+p*M;8D9 literal 0 HcmV?d00001 diff --git a/tests/queries/0_stateless/02967_http_compressed.sh b/tests/queries/0_stateless/02967_http_compressed.sh new file mode 100755 index 00000000000..48b2cb3687b --- /dev/null +++ b/tests/queries/0_stateless/02967_http_compressed.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env bash + +CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) +# shellcheck source=../shell_config.sh +. "$CURDIR"/../shell_config.sh + +curl -sS -d 'SELECT 1,2,3,42' -H 'Accept-Encoding: gzip' -X POST "${CLICKHOUSE_URL}&compress=1&enable_http_compression=1" | gzip -d +curl -sS -d 'SELECT 1,2,3,42' -H 'Accept-Encoding: br' -X POST "${CLICKHOUSE_URL}&compress=1&enable_http_compression=1" | brotli -d +curl -sS -d 'SELECT 1,2,3,42' -H 'Accept-Encoding: xz' -X POST "${CLICKHOUSE_URL}&compress=1&enable_http_compression=1" | xz -d +curl -sS -d 'SELECT 1,2,3,42' -H 'Accept-Encoding: zstd' -X POST "${CLICKHOUSE_URL}&compress=1&enable_http_compression=1" | zstd -d +curl -sS -d 'SELECT 1,2,3,42' -H 'Accept-Encoding: lz4' -X POST "${CLICKHOUSE_URL}&compress=1&enable_http_compression=1" | lz4 -dc +curl -sS -d 'SELECT 1,2,3,42' -H 'Accept-Encoding: bz2' -X POST "${CLICKHOUSE_URL}&compress=1&enable_http_compression=1" | bzip2 -d