Skip to content

Commit 630f683

Browse files
committed
dynamic_ha_SUITE: Explicitely add failing policies found by PropEr
References rabbitmq#889. [#126767013]
1 parent 3faaecf commit 630f683

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/dynamic_ha_SUITE.erl

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ groups() ->
6262
{cluster_size_3, [], [
6363
change_policy,
6464
rapid_change,
65+
failing_random_policies,
6566
random_policy
6667
]}
6768
]}
@@ -258,6 +259,17 @@ promote_on_shutdown(Config) ->
258259
random_policy(Config) ->
259260
run_proper(fun prop_random_policy/1, [Config]).
260261

262+
failing_random_policies(Config) ->
263+
[A, B | _] = Nodes = rabbit_ct_broker_helpers:get_node_configs(Config,
264+
nodename),
265+
%% Those set of policies were found as failing by PropEr in the
266+
%% `random_policy` test above. We add them explicitely here to make
267+
%% sure they get tested.
268+
true = test_random_policy(Config, Nodes,
269+
[{nodes, [A, B]}, {nodes, [A]}]),
270+
true = test_random_policy(Config, Nodes,
271+
[{exactly, 3}, undefined, all, {nodes, [B]}]).
272+
261273
%%----------------------------------------------------------------------------
262274

263275
assert_slaves(RPCNode, QName, Exp) ->

0 commit comments

Comments
 (0)