Adds grant to public

pull/7240/head
gindibay 2023-11-15 17:33:14 +03:00
parent 7939267326
commit deee8e53dd
2 changed files with 6 additions and 2 deletions

View File

@ -548,7 +548,7 @@ select 1 from citus_remove_node('localhost', :worker_2_port);
(1 row) (1 row)
CREATE DATABASE db_role_grants_test; 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.log_remote_commands = true;
set citus.grep_remote_commands = '%CREATE ROLE%'; set citus.grep_remote_commands = '%CREATE ROLE%';
CREATE ROLE db_role_grants_test_role_missing_on_node_2; CREATE ROLE db_role_grants_test_role_missing_on_node_2;
@ -711,6 +711,7 @@ SELECT result from run_command_on_all_nodes(
t t
(3 rows) (3 rows)
grant connect,temp,temporary,create on database db_role_grants_test to public;
DROP DATABASE db_role_grants_test; DROP DATABASE db_role_grants_test;
DROP ROLE db_role_grants_test_role_exists_on_node_2; DROP ROLE db_role_grants_test_role_exists_on_node_2;
DROP ROLE db_role_grants_test_role_missing_on_node_2; DROP ROLE db_role_grants_test_role_missing_on_node_2;

View File

@ -313,7 +313,7 @@ select 1 from citus_remove_node('localhost', :worker_2_port);
CREATE DATABASE db_role_grants_test; 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.log_remote_commands = true;
set citus.grep_remote_commands = '%CREATE ROLE%'; set citus.grep_remote_commands = '%CREATE ROLE%';
@ -411,12 +411,15 @@ SELECT result from run_command_on_all_nodes(
$$ $$
) ORDER BY result; ) ORDER BY result;
grant connect,temp,temporary,create on database db_role_grants_test to public;
DROP DATABASE db_role_grants_test; DROP DATABASE db_role_grants_test;
DROP ROLE db_role_grants_test_role_exists_on_node_2; DROP ROLE db_role_grants_test_role_exists_on_node_2;
DROP ROLE db_role_grants_test_role_missing_on_node_2; DROP ROLE db_role_grants_test_role_missing_on_node_2;
--clean up resources created by this test --clean up resources created by this test
-- DROP TABLESPACE is not supported, so we need to drop it manually. -- DROP TABLESPACE is not supported, so we need to drop it manually.