mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
fix tests
This commit is contained in:
parent
53a4473b06
commit
3008e701ea
@ -53,7 +53,7 @@ TEST(AccessRights, Union)
|
||||
"SHOW ROW POLICIES, SYSTEM MERGES, SYSTEM TTL MERGES, SYSTEM FETCHES, "
|
||||
"SYSTEM MOVES, SYSTEM SENDS, SYSTEM REPLICATION QUEUES, "
|
||||
"SYSTEM DROP REPLICA, SYSTEM SYNC REPLICA, SYSTEM RESTART REPLICA, "
|
||||
"SYSTEM RESTORE REPLICA, SYSTEM SYNC DATABASE REPLICA, SYSTEM FLUSH DISTRIBUTED, dictGet ON db1.*");
|
||||
"SYSTEM RESTORE REPLICA, SYSTEM WAIT LOADING PARTS, SYSTEM SYNC DATABASE REPLICA, SYSTEM FLUSH DISTRIBUTED, dictGet ON db1.*");
|
||||
}
|
||||
|
||||
|
||||
|
@ -181,7 +181,7 @@ def test_grant_all_on_table():
|
||||
== "GRANT SHOW TABLES, SHOW COLUMNS, SHOW DICTIONARIES, SELECT, INSERT, ALTER TABLE, ALTER VIEW, CREATE TABLE, CREATE VIEW, CREATE DICTIONARY, "
|
||||
"DROP TABLE, DROP VIEW, DROP DICTIONARY, TRUNCATE, OPTIMIZE, BACKUP, CREATE ROW POLICY, ALTER ROW POLICY, DROP ROW POLICY, SHOW ROW POLICIES, "
|
||||
"SYSTEM MERGES, SYSTEM TTL MERGES, SYSTEM FETCHES, SYSTEM MOVES, SYSTEM SENDS, SYSTEM REPLICATION QUEUES, SYSTEM DROP REPLICA, SYSTEM SYNC REPLICA, "
|
||||
"SYSTEM RESTART REPLICA, SYSTEM RESTORE REPLICA, SYSTEM FLUSH DISTRIBUTED, dictGet ON test.table TO B\n"
|
||||
"SYSTEM RESTART REPLICA, SYSTEM RESTORE REPLICA, SYSTEM WAIT LOADING PARTS, SYSTEM FLUSH DISTRIBUTED, dictGet ON test.table TO B\n"
|
||||
)
|
||||
instance.query("REVOKE ALL ON test.table FROM B", user="A")
|
||||
assert instance.query("SHOW GRANTS FOR B") == ""
|
||||
|
@ -83,7 +83,21 @@ def test_merge_tree_load_parts(started_cluster):
|
||||
set(part_dirs.strip().split("\n")) - {"detached", "format_version.txt"}
|
||||
)
|
||||
|
||||
assert len(part_dirs) == 1 and part_dirs[0].startswith("44_1_20")
|
||||
MAX_RETRY = 10
|
||||
part_dirs_ok = False
|
||||
for _ in range(MAX_RETRY):
|
||||
part_dirs = node1.exec_in_container(
|
||||
["bash", "-c", f"ls {table_path}"], user="root"
|
||||
)
|
||||
part_dirs = list(
|
||||
set(part_dirs.strip().split("\n")) - {"detached", "format_version.txt"}
|
||||
)
|
||||
part_dirs_ok = len(part_dirs) == 1 and part_dirs[0].startswith("44_1_20")
|
||||
if part_dirs_ok:
|
||||
break
|
||||
time.sleep(2)
|
||||
|
||||
assert part_dirs_ok
|
||||
|
||||
|
||||
def test_merge_tree_load_parts_corrupted(started_cluster):
|
||||
|
Loading…
Reference in New Issue
Block a user