ClickHouse/tests/queries/0_stateless/01293_create_role.reference
Vitaly Baranov a5b70fbdda Add tests.
2020-06-15 22:07:47 +03:00

39 lines
1.4 KiB
Plaintext

-- default
CREATE ROLE r1_01293
-- same as default
CREATE ROLE r2_01293
-- rename
CREATE ROLE r2_01293_renamed
-- host after @
CREATE ROLE r1_01293
CREATE ROLE r1_01293
CREATE ROLE `r2_01293@%.myhost.com`
CREATE ROLE `r2_01293@%.myhost.com`
-- settings
CREATE ROLE r1_01293
CREATE ROLE r2_01293 SETTINGS PROFILE default
CREATE ROLE r3_01293 SETTINGS max_memory_usage = 5000000
CREATE ROLE r4_01293 SETTINGS max_memory_usage MIN 5000000
CREATE ROLE r5_01293 SETTINGS max_memory_usage MAX 5000000
CREATE ROLE r6_01293 SETTINGS max_memory_usage READONLY
CREATE ROLE r7_01293 SETTINGS max_memory_usage WRITABLE
CREATE ROLE r8_01293 SETTINGS max_memory_usage = 5000000 MIN 4000000 MAX 6000000 READONLY
CREATE ROLE r9_01293 SETTINGS PROFILE default, max_memory_usage = 5000000 WRITABLE
CREATE ROLE r1_01293 SETTINGS readonly = 1
CREATE ROLE r2_01293 SETTINGS readonly = 1
CREATE ROLE r3_01293
-- multiple roles in one command
CREATE ROLE r1_01293
CREATE ROLE r2_01293
CREATE ROLE r1_01293 SETTINGS readonly = 1
CREATE ROLE r2_01293 SETTINGS readonly = 1
-- system.roles
r1_01293 disk
-- 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
\N \N r3_01293 0 max_memory_usage 5000000 4000000 6000000 0 \N
\N \N r4_01293 0 \N \N \N \N \N default
\N \N r4_01293 1 max_memory_usage 5000000 \N \N \N \N
\N \N r4_01293 2 readonly 1 \N \N \N \N