mirror of https://github.com/citusdata/citus.git
Adds config as seperate file
parent
1b24b3c5ff
commit
2bb01f9e76
|
@ -3,6 +3,7 @@ test: isolation_setup
|
|||
# tests that change node metadata should precede
|
||||
# isolation_cluster_management such that tests
|
||||
# that come later can be parallelized
|
||||
test: enable_ddl_propagation
|
||||
test: isolation_cluster_management
|
||||
|
||||
test: isolation_move_placement_vs_move_placement
|
||||
|
|
|
@ -0,0 +1,19 @@
|
|||
---------------------------------------------------------------------
|
||||
t
|
||||
(1 row)
|
||||
|
||||
\c - - - :worker_1_port
|
||||
ALTER SYSTEM SET citus.enable_ddl_propagation = 'true';
|
||||
SELECT pg_reload_conf();
|
||||
pg_reload_conf
|
||||
---------------------------------------------------------------------
|
||||
t
|
||||
(1 row)
|
||||
|
||||
\c - - - :worker_2_port
|
||||
ALTER SYSTEM SET citus.enable_ddl_propagation = 'true';
|
||||
SELECT pg_reload_conf();
|
||||
pg_reload_conf
|
||||
---------------------------------------------------------------------
|
||||
t
|
||||
(1 row)
|
|
@ -1,28 +1,4 @@
|
|||
-- File to create functions and helpers needed for subsequent tests
|
||||
ALTER SYSTEM SET citus.enable_ddl_propagation = 'true';
|
||||
SELECT pg_reload_conf();
|
||||
pg_reload_conf
|
||||
---------------------------------------------------------------------
|
||||
t
|
||||
(1 row)
|
||||
|
||||
\c - - - :worker_1_port
|
||||
ALTER SYSTEM SET citus.enable_ddl_propagation = 'true';
|
||||
SELECT pg_reload_conf();
|
||||
pg_reload_conf
|
||||
---------------------------------------------------------------------
|
||||
t
|
||||
(1 row)
|
||||
|
||||
\c - - - :worker_2_port
|
||||
ALTER SYSTEM SET citus.enable_ddl_propagation = 'true';
|
||||
SELECT pg_reload_conf();
|
||||
pg_reload_conf
|
||||
---------------------------------------------------------------------
|
||||
t
|
||||
(1 row)
|
||||
|
||||
\c - - - :master_port
|
||||
-- create a helper function to create objects on each node
|
||||
CREATE OR REPLACE FUNCTION run_command_on_master_and_workers(p_sql text)
|
||||
RETURNS void LANGUAGE plpgsql AS $$
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
# import this file (from psql you can use \i) to use mitmproxy manually
|
||||
test: enable_ddl_propagation
|
||||
test: failure_test_helpers
|
||||
|
||||
# this should only be run by pg_regress_multi, you don't need it
|
||||
|
|
|
@ -64,6 +64,7 @@ test: alter_database_propagation
|
|||
test: citus_shards
|
||||
test: reassign_owned
|
||||
test: alter_database_from_nonmain_db
|
||||
test: enable_ddl_propagation
|
||||
|
||||
# ----------
|
||||
# multi_citus_tools tests utility functions written for citus tools
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
ALTER SYSTEM SET citus.enable_ddl_propagation = 'true';
|
||||
SELECT pg_reload_conf();
|
||||
|
||||
\c - - - :worker_1_port
|
||||
ALTER SYSTEM SET citus.enable_ddl_propagation = 'true';
|
||||
SELECT pg_reload_conf();
|
||||
|
||||
\c - - - :worker_2_port
|
||||
ALTER SYSTEM SET citus.enable_ddl_propagation = 'true';
|
||||
SELECT pg_reload_conf();
|
||||
|
|
@ -1,15 +1,5 @@
|
|||
-- File to create functions and helpers needed for subsequent tests
|
||||
ALTER SYSTEM SET citus.enable_ddl_propagation = 'true';
|
||||
SELECT pg_reload_conf();
|
||||
|
||||
\c - - - :worker_1_port
|
||||
ALTER SYSTEM SET citus.enable_ddl_propagation = 'true';
|
||||
SELECT pg_reload_conf();
|
||||
|
||||
\c - - - :worker_2_port
|
||||
ALTER SYSTEM SET citus.enable_ddl_propagation = 'true';
|
||||
SELECT pg_reload_conf();
|
||||
\c - - - :master_port
|
||||
-- create a helper function to create objects on each node
|
||||
CREATE OR REPLACE FUNCTION run_command_on_master_and_workers(p_sql text)
|
||||
RETURNS void LANGUAGE plpgsql AS $$
|
||||
|
|
Loading…
Reference in New Issue