From e1537a5e086afb84d589679efcba73e4ca3cea22 Mon Sep 17 00:00:00 2001 From: reshke Date: Wed, 3 Apr 2024 20:10:18 +0000 Subject: [PATCH] modify config for coodinator test --- test/feature/conf/router_cluster.yaml | 46 +++++++++++++++++++ .../feature/conf/router_with_coordinator.yaml | 1 + test/feature/features/coordinator.feature | 4 ++ 3 files changed, 51 insertions(+) create mode 100644 test/feature/conf/router_cluster.yaml diff --git a/test/feature/conf/router_cluster.yaml b/test/feature/conf/router_cluster.yaml new file mode 100644 index 000000000..ab5fab0fd --- /dev/null +++ b/test/feature/conf/router_cluster.yaml @@ -0,0 +1,46 @@ +host: 'regress_router' +router_port: '6432' +admin_console_port: '7432' +grpc_api_port: '7000' +router_mode: PROXY +log_level: debug +time_quantiles: + - 0.75 +world_shard_fallback: true +show_notice_messages: true +use_coordinator_init: true +frontend_rules: + - db: regress + usr: regress + pool_default: true + pool_mode: TRANSACTION + auth_rule: + auth_method: ok +shards: + sh1: + db: regress + usr: regress + pwd: 12345678 + type: DATA + hosts: + - 'spqr_shard_1:6432' + sh2: + db: regress + usr: regress + pwd: 12345678 + type: DATA + hosts: + - 'spqr_shard_2:6432' + +backend_rules: + - db: regress + usr: regress + pool_discard: true + pool_rollback: true + auth_rules: + sh1: + auth_method: md5 + password: 12345678 + sh2: + auth_method: md5 + password: 12345678 diff --git a/test/feature/conf/router_with_coordinator.yaml b/test/feature/conf/router_with_coordinator.yaml index 98365631b..02773a2d4 100644 --- a/test/feature/conf/router_with_coordinator.yaml +++ b/test/feature/conf/router_with_coordinator.yaml @@ -9,6 +9,7 @@ time_quantiles: world_shard_fallback: true show_notice_messages: true with_coordinator: true +use_coordinator_init: true frontend_rules: - db: regress usr: regress diff --git a/test/feature/features/coordinator.feature b/test/feature/features/coordinator.feature index 3a546ce95..a40eaca20 100644 --- a/test/feature/features/coordinator.feature +++ b/test/feature/features/coordinator.feature @@ -3,6 +3,10 @@ Feature: Coordinator test # # Make host "coordinator" take control # + Given cluster environment is + """ + ROUTER_CONFIG=/spqr/test/feature/conf/router_cluster.yaml + """ Given cluster is up and running And host "coordinator2" is stopped And host "coordinator2" is started