Fix fast tests

This commit is contained in:
pufit 2023-07-11 19:58:28 -04:00
parent 77e45e5669
commit 1a4d48324e
5 changed files with 15 additions and 14 deletions

View File

@ -28,7 +28,7 @@ CREATE ROLE r2_01293
CREATE ROLE r1_01293 SETTINGS readonly = 1
CREATE ROLE r2_01293 SETTINGS readonly = 1
-- system.roles
r1_01293 local directory
r1_01293 local_directory
-- system.settings_profile_elements
\N \N r1_01293 0 readonly 1 \N \N \N \N
\N \N r2_01293 0 \N \N \N \N \N default

View File

@ -53,12 +53,12 @@ CREATE SETTINGS PROFILE s4_01294 SETTINGS INHERIT readonly, INHERIT readonly
CREATE SETTINGS PROFILE s5_01294 SETTINGS INHERIT readonly, readonly = 1
CREATE SETTINGS PROFILE s6_01294 SETTINGS INHERIT readonly, readonly CONST
-- system.settings_profiles
s1_01294 local directory 0 0 [] []
s2_01294 local directory 1 0 ['r1_01294'] []
s3_01294 local directory 1 0 ['r1_01294'] []
s4_01294 local directory 1 0 ['r1_01294'] []
s5_01294 local directory 3 0 ['u1_01294'] []
s6_01294 local directory 0 1 [] ['r1_01294','u1_01294']
s1_01294 local_directory 0 0 [] []
s2_01294 local_directory 1 0 ['r1_01294'] []
s3_01294 local_directory 1 0 ['r1_01294'] []
s4_01294 local_directory 1 0 ['r1_01294'] []
s5_01294 local_directory 3 0 ['u1_01294'] []
s6_01294 local_directory 0 1 [] ['r1_01294','u1_01294']
-- system.settings_profile_elements
s2_01294 \N \N 0 readonly 0 \N \N \N \N
s3_01294 \N \N 0 max_memory_usage 5000000 4000000 6000000 CONST \N

View File

@ -30,6 +30,6 @@ CREATE ROW POLICY p5_01295 ON db2.table2 FOR SELECT USING a = b
CREATE ROW POLICY p1_01295 ON db.table FOR SELECT USING 1 TO ALL
CREATE ROW POLICY p2_01295 ON db.table FOR SELECT USING 1 TO ALL
-- system.row_policies
p1_01295 ON db.table p1_01295 db table local directory (a < b) AND (c > d) 0 0 [] []
p2_01295 ON db.table p2_01295 db table local directory id = currentUser() 1 0 ['u1_01295'] []
p3_01295 ON db.table p3_01295 db table local directory 1 0 1 [] ['r1_01295']
p1_01295 ON db.table p1_01295 db table local_directory (a < b) AND (c > d) 0 0 [] []
p2_01295 ON db.table p2_01295 db table local_directory id = currentUser() 1 0 ['u1_01295'] []
p3_01295 ON db.table p3_01295 db table local_directory 1 0 1 [] ['r1_01295']

View File

@ -52,10 +52,10 @@ CREATE QUOTA q2_01297 FOR INTERVAL 1 day MAX errors = 5
CREATE QUOTA q1_01297 FOR INTERVAL 1 day TRACKING ONLY TO r1_01297
CREATE QUOTA q2_01297 FOR INTERVAL 1 day TRACKING ONLY TO r1_01297
-- system.quotas
q1_01297 local directory ['user_name'] [] 0 ['r1_01297'] []
q2_01297 local directory [] [5259492] 0 ['r1_01297','u1_01297'] []
q3_01297 local directory ['client_key','user_name'] [5259492,15778476] 0 [] []
q4_01297 local directory [] [604800] 1 [] ['u1_01297']
q1_01297 local_directory ['user_name'] [] 0 ['r1_01297'] []
q2_01297 local_directory [] [5259492] 0 ['r1_01297','u1_01297'] []
q3_01297 local_directory ['client_key','user_name'] [5259492,15778476] 0 [] []
q4_01297 local_directory [] [604800] 1 [] ['u1_01297']
-- system.quota_limits
q2_01297 5259492 0 100 \N \N 11 1000 10000 1001 10001 2.5 \N
q3_01297 5259492 0 \N \N \N \N 1002 \N \N \N \N \N

View File

@ -955,6 +955,7 @@ CREATE TABLE system.role_grants
`user_name` Nullable(String),
`role_name` Nullable(String),
`granted_role_name` String,
`granted_role_id` UUID,
`granted_role_is_default` UInt8,
`with_admin_option` UInt8
)