mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 09:32:01 +00:00
Automatic style fix
This commit is contained in:
parent
62aacc5539
commit
c6108cf8f5
@ -78,8 +78,12 @@ def test_grant_all_on_cluster():
|
|||||||
|
|
||||||
def test_grant_current_database_on_cluster():
|
def test_grant_current_database_on_cluster():
|
||||||
ch1.query("CREATE DATABASE user_db ON CLUSTER 'cluster'")
|
ch1.query("CREATE DATABASE user_db ON CLUSTER 'cluster'")
|
||||||
ch1.query("CREATE USER IF NOT EXISTS test_user ON CLUSTER 'cluster' DEFAULT DATABASE user_db")
|
ch1.query(
|
||||||
ch1.query("GRANT SELECT ON user_db.* TO test_user ON CLUSTER 'cluster' WITH GRANT OPTION")
|
"CREATE USER IF NOT EXISTS test_user ON CLUSTER 'cluster' DEFAULT DATABASE user_db"
|
||||||
|
)
|
||||||
|
ch1.query(
|
||||||
|
"GRANT SELECT ON user_db.* TO test_user ON CLUSTER 'cluster' WITH GRANT OPTION"
|
||||||
|
)
|
||||||
|
|
||||||
assert ch1.query("SHOW DATABASES", user="test_user") == "user_db\n"
|
assert ch1.query("SHOW DATABASES", user="test_user") == "user_db\n"
|
||||||
ch1.query("GRANT SELECT ON * TO test_user ON CLUSTER 'cluster'", user="test_user")
|
ch1.query("GRANT SELECT ON * TO test_user ON CLUSTER 'cluster'", user="test_user")
|
||||||
|
Loading…
Reference in New Issue
Block a user