fixing test

This commit is contained in:
santrancisco 2023-11-21 22:26:34 +11:00
parent 0828447a58
commit e9f6c398cf
No known key found for this signature in database
GPG Key ID: DE13EC3506E37B90
3 changed files with 2 additions and 15 deletions

View File

@ -1,2 +0,0 @@
Path must be inside user-files path
Path must be inside user-files path

View File

@ -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')';"

View 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 }