Skip to content

Commit

Permalink
modify config for coodinator test
Browse files Browse the repository at this point in the history
  • Loading branch information
reshke committed Apr 3, 2024
1 parent 97d74b9 commit e1537a5
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 0 deletions.
46 changes: 46 additions & 0 deletions test/feature/conf/router_cluster.yaml
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions test/feature/conf/router_with_coordinator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions test/feature/features/coordinator.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e1537a5

Please sign in to comment.