ClickHouse/tests/queries/0_stateless/02833_url_without_path_encoding.sh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
518 B
Bash
Raw Normal View History

#!/usr/bin/env bash
# Tags: no-fasttest
CUR_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
# shellcheck source=../shell_config.sh
. "$CUR_DIR"/../shell_config.sh
2023-07-28 09:39:06 +00:00
$CLICKHOUSE_CLIENT -q "select count() from url('http://localhost:11111/test%2Fa.tsv') settings enable_url_encoding=1"
# Grep 'test%2Fa.tsv' to ensure that path wasn't encoded/decoded
2024-03-03 13:22:40 +00:00
$CLICKHOUSE_CLIENT -q "select count() from url('http://localhost:11111/test%2Fa.tsv') settings enable_url_encoding=0" 2>&1 | \
grep -o "test%2Fa.tsv" -m1 | head -n 1