Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.

Commit

Permalink
Move set_partition_handling_mode_globally/2 and set_partition_handlin…
Browse files Browse the repository at this point in the history
…g_mode/3 to broker helpers
  • Loading branch information
michaelklishin committed Jul 3, 2016
1 parent 5997e06 commit 9cc96f0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/rabbit_ct_broker_helpers.erl
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@
kill_node/2,
kill_node_after/3,

set_partition_handling_mode/3,
set_partition_handling_mode_globally/2,
enable_dist_proxy_manager/1,
enable_dist_proxy/1,
enable_dist_proxy_on_node/3,
Expand Down Expand Up @@ -542,6 +544,14 @@ allow_traffic_between(NodeA, NodeB) ->
rpc:call(NodeA, inet_tcp_proxy, allow, [NodeB]),
rpc:call(NodeB, inet_tcp_proxy, allow, [NodeA]).

set_partition_handling_mode_globally(Config, Mode) ->
rabbit_ct_broker_helpers:rpc_all(Config,
application, set_env, [rabbit, cluster_partition_handling, Mode]).

set_partition_handling_mode(Config, Nodes, Mode) ->
rabbit_ct_broker_helpers:rpc(Config, Nodes,
application, set_env, [rabbit, cluster_partition_handling, Mode]).

%% -------------------------------------------------------------------
%% Calls to rabbitmqctl from Erlang.
%% -------------------------------------------------------------------
Expand Down

0 comments on commit 9cc96f0

Please sign in to comment.