From 11072b4cb8980e5580a66a1f345fc1c61f477986 Mon Sep 17 00:00:00 2001 From: Halil Ozan Akgul Date: Tue, 30 Nov 2021 12:46:22 +0300 Subject: [PATCH] Normalize create role command in drop_partitioned_table test --- .../regress/expected/drop_partitioned_table.out | 14 ++++++-------- src/test/regress/sql/drop_partitioned_table.sql | 6 ++---- 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/src/test/regress/expected/drop_partitioned_table.out b/src/test/regress/expected/drop_partitioned_table.out index 17ebb5e97..b77e6f80b 100644 --- a/src/test/regress/expected/drop_partitioned_table.out +++ b/src/test/regress/expected/drop_partitioned_table.out @@ -147,18 +147,16 @@ SET search_path = drop_partitioned_table; SET citus.next_shard_id TO 723000; -- CASE 3 -- DROP OWNED BY role1; Only parent is owned by role1, children are owned by another owner -SET client_min_messages TO warning; -SET citus.enable_ddl_propagation TO off; +SET client_min_messages TO ERROR; CREATE ROLE role1; -RESET client_min_messages; -RESET citus.enable_ddl_propagation; -SELECT run_command_on_workers('CREATE ROLE role1'); - run_command_on_workers +SELECT 1 FROM run_command_on_workers('CREATE ROLE role1'); + ?column? --------------------------------------------------------------------- - (localhost,57637,t,"CREATE ROLE") - (localhost,57638,t,"CREATE ROLE") + 1 + 1 (2 rows) +RESET client_min_messages; GRANT ALL ON SCHEMA drop_partitioned_table TO role1; SET ROLE role1; CREATE TABLE drop_partitioned_table.parent (x text, t timestamptz DEFAULT now()) PARTITION BY RANGE (t); diff --git a/src/test/regress/sql/drop_partitioned_table.sql b/src/test/regress/sql/drop_partitioned_table.sql index e5eb7dc23..a3d5e9752 100644 --- a/src/test/regress/sql/drop_partitioned_table.sql +++ b/src/test/regress/sql/drop_partitioned_table.sql @@ -117,12 +117,10 @@ SET citus.next_shard_id TO 723000; -- CASE 3 -- DROP OWNED BY role1; Only parent is owned by role1, children are owned by another owner -SET client_min_messages TO warning; -SET citus.enable_ddl_propagation TO off; +SET client_min_messages TO ERROR; CREATE ROLE role1; +SELECT 1 FROM run_command_on_workers('CREATE ROLE role1'); RESET client_min_messages; -RESET citus.enable_ddl_propagation; -SELECT run_command_on_workers('CREATE ROLE role1'); GRANT ALL ON SCHEMA drop_partitioned_table TO role1; SET ROLE role1; CREATE TABLE drop_partitioned_table.parent (x text, t timestamptz DEFAULT now()) PARTITION BY RANGE (t);