mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +00:00
fixing test
This commit is contained in:
parent
0828447a58
commit
e9f6c398cf
@ -1,2 +0,0 @@
|
||||
Path must be inside user-files path
|
||||
Path must be inside user-files path
|
@ -1,13 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
CUR_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||
# shellcheck source=../shell_config.sh
|
||||
. "$CUR_DIR"/../shell_config.sh
|
||||
|
||||
function get_exception_message()
|
||||
{
|
||||
$CLICKHOUSE_CLIENT --query "$1" |& grep -o 'Path must be inside user-files path'
|
||||
}
|
||||
|
||||
get_exception_message "create database db_filesystem ENGINE=Filesystem('/etc');"
|
||||
get_exception_message "create database db_filesystem ENGINE=Filesystem('../../../../../../../../etc')';"
|
2
tests/queries/0_stateless/02921_database_filesystem_path_check.sql
Executable file
2
tests/queries/0_stateless/02921_database_filesystem_path_check.sql
Executable file
@ -0,0 +1,2 @@
|
||||
create database db_filesystem ENGINE=Filesystem('/etc'); -- { serverError BAD_ARGUMENTS }
|
||||
create database db_filesystem ENGINE=Filesystem('../../../../../../../../etc'); -- { serverError BAD_ARGUMENTS }
|
Loading…
Reference in New Issue
Block a user