ClickHouse/tests/config
Azat Khuzhin 01e1c5345a Add separate CLUSTER grant
In case you have different roles for the same user on multiple clusters,
ON CLUSTER query can help to overcome some limitations.

Consider the following example:
- cluster_with_data, dev_user (readonly=2)
- stage_cluster, dev_user (readonly=0)

So when you will execute the following query from stage_cluster, it will
be successfully executed, since ON CLUSTER queries has different system
profile:

    DROP DATABASE default ON CLUSTER cluster_with_data

This is not 100% safe, but at least something.

Note, that right now only ON CLUSTER query it self is supported, but
separate clusters are not (i.e. GRANT CLUSTER some_cluster_name TO
default), since right now grants sticked to database+.

v2: on_cluster_queries_require_cluster_grant
v3: fix test and process flags as bit mask
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-05-16 13:57:45 +03:00
..
config.d Add separate CLUSTER grant 2022-05-16 13:57:45 +03:00
top_level_domains Fix reading of custom TLD w/o new line at EOF 2021-08-27 00:43:21 +03:00
users.d Get rid of all "remote" mentions 2022-03-30 17:15:29 +02:00
client_config.xml Move all folders inside /dbms one level up (#9974) 2020-04-02 02:51:21 +03:00
decimals_dictionary.xml Merge remote-tracking branch 'origin/master' into HEAD 2020-04-02 20:03:20 +03:00
dhparam.pem Move all folders inside /dbms one level up (#9974) 2020-04-02 02:51:21 +03:00
executable_dictionary.xml Fixed tests 2021-09-04 14:29:40 +03:00
executable_pool_dictionary.xml Added executable function integrations tests 2021-12-28 22:55:30 +03:00
install.sh Merge pull request #36997 from vitlibar/users-without-assigned-policies-can-view-rows 2022-05-09 12:04:50 +02:00
ints_dictionary.xml Merge remote-tracking branch 'origin/master' into HEAD 2020-04-02 20:03:20 +03:00
lsan_suppressions.txt Revert "Revert "Write structure of table functions to metadata"" 2020-10-14 15:19:29 +03:00
README.md One more time 2020-09-24 13:32:49 +03:00
server.crt Move all folders inside /dbms one level up (#9974) 2020-04-02 02:51:21 +03:00
server.key Move all folders inside /dbms one level up (#9974) 2020-04-02 02:51:21 +03:00
strings_dictionary.xml Merge remote-tracking branch 'origin/master' into HEAD 2020-04-02 20:03:20 +03:00
test_function.xml Fix executable function tests 2021-12-28 22:55:30 +03:00

ClickHouse configs for test environment

How to use

CI use these configs in all checks installing them with install.sh script. If you want to run all tests from tests/queries/0_stateless and test/queries/1_stateful on your local machine you have to set up configs from this directory for your clickhouse-server. The most simple way is to install them using install.sh script. Other option is just copy files into your clickhouse config directory.

How to add new config

Just place file .xml with new config into appropriate directory and add ln command into install.sh script. After that CI will use this config in all tests runs.