mirror of https://github.com/citusdata/citus.git
Adds grant to public
parent
7939267326
commit
deee8e53dd
|
@ -548,7 +548,7 @@ select 1 from citus_remove_node('localhost', :worker_2_port);
|
|||
(1 row)
|
||||
|
||||
CREATE DATABASE db_role_grants_test;
|
||||
revoke connect,temp,temporary on database db_role_grants_test from public;
|
||||
revoke connect,temp,temporary,create on database db_role_grants_test from public;
|
||||
SET citus.log_remote_commands = true;
|
||||
set citus.grep_remote_commands = '%CREATE ROLE%';
|
||||
CREATE ROLE db_role_grants_test_role_missing_on_node_2;
|
||||
|
@ -711,6 +711,7 @@ SELECT result from run_command_on_all_nodes(
|
|||
t
|
||||
(3 rows)
|
||||
|
||||
grant connect,temp,temporary,create on database db_role_grants_test to public;
|
||||
DROP DATABASE db_role_grants_test;
|
||||
DROP ROLE db_role_grants_test_role_exists_on_node_2;
|
||||
DROP ROLE db_role_grants_test_role_missing_on_node_2;
|
||||
|
|
|
@ -313,7 +313,7 @@ select 1 from citus_remove_node('localhost', :worker_2_port);
|
|||
|
||||
CREATE DATABASE db_role_grants_test;
|
||||
|
||||
revoke connect,temp,temporary on database db_role_grants_test from public;
|
||||
revoke connect,temp,temporary,create on database db_role_grants_test from public;
|
||||
|
||||
SET citus.log_remote_commands = true;
|
||||
set citus.grep_remote_commands = '%CREATE ROLE%';
|
||||
|
@ -411,12 +411,15 @@ SELECT result from run_command_on_all_nodes(
|
|||
$$
|
||||
) ORDER BY result;
|
||||
|
||||
grant connect,temp,temporary,create on database db_role_grants_test to public;
|
||||
|
||||
DROP DATABASE db_role_grants_test;
|
||||
DROP ROLE db_role_grants_test_role_exists_on_node_2;
|
||||
DROP ROLE db_role_grants_test_role_missing_on_node_2;
|
||||
|
||||
|
||||
|
||||
|
||||
--clean up resources created by this test
|
||||
|
||||
-- DROP TABLESPACE is not supported, so we need to drop it manually.
|
||||
|
|
Loading…
Reference in New Issue