mirror of https://github.com/citusdata/citus.git
Minor permissions test fix
When running under Enterprise, some of the GRANT commands and whatnot are propagated. Guarding that section with a call to disable DDL prop. fixes everything.pull/1175/merge
parent
823cd0dc98
commit
2cb34406d1
|
@ -14,6 +14,8 @@ SELECT create_distributed_table('test', 'id');
|
|||
|
||||
(1 row)
|
||||
|
||||
-- turn off propagation to avoid Enterprise processing the following section
|
||||
SET citus.enable_ddl_propagation TO off;
|
||||
CREATE USER full_access;
|
||||
NOTICE: not propagating CREATE ROLE/USER commands to worker nodes
|
||||
HINT: Connect to worker nodes directly to manually create all necessary users and roles.
|
||||
|
@ -25,6 +27,7 @@ NOTICE: not propagating CREATE ROLE/USER commands to worker nodes
|
|||
HINT: Connect to worker nodes directly to manually create all necessary users and roles.
|
||||
GRANT ALL ON TABLE test TO full_access;
|
||||
GRANT SELECT ON TABLE test TO read_access;
|
||||
SET citus.enable_ddl_propagation TO DEFAULT;
|
||||
\c - - - :worker_1_port
|
||||
CREATE USER full_access;
|
||||
NOTICE: not propagating CREATE ROLE/USER commands to worker nodes
|
||||
|
|
|
@ -13,6 +13,9 @@ SET citus.shard_count TO 2;
|
|||
CREATE TABLE test (id integer);
|
||||
SELECT create_distributed_table('test', 'id');
|
||||
|
||||
-- turn off propagation to avoid Enterprise processing the following section
|
||||
SET citus.enable_ddl_propagation TO off;
|
||||
|
||||
CREATE USER full_access;
|
||||
CREATE USER read_access;
|
||||
CREATE USER no_access;
|
||||
|
@ -20,6 +23,8 @@ CREATE USER no_access;
|
|||
GRANT ALL ON TABLE test TO full_access;
|
||||
GRANT SELECT ON TABLE test TO read_access;
|
||||
|
||||
SET citus.enable_ddl_propagation TO DEFAULT;
|
||||
|
||||
\c - - - :worker_1_port
|
||||
CREATE USER full_access;
|
||||
CREATE USER read_access;
|
||||
|
|
Loading…
Reference in New Issue