summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Sébastien Pédron <jean-sebastien@rabbitmq.com>2016-07-21 15:37:02 +0200
committerJean-Sébastien Pédron <jean-sebastien@rabbitmq.com>2016-07-21 15:44:35 +0200
commit630f683626d628dcfac766c231b9d89c61a45c16 (patch)
tree96b8df337f9f2e54e5ce13e4bc172b69814a5907
parent3faaecf985e42287f7c3709afaa9c72cbb36e366 (diff)
downloadrabbitmq-server-git-630f683626d628dcfac766c231b9d89c61a45c16.tar.gz
dynamic_ha_SUITE: Explicitely add failing policies found by PropEr
References #889. [#126767013]
-rw-r--r--test/dynamic_ha_SUITE.erl12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/dynamic_ha_SUITE.erl b/test/dynamic_ha_SUITE.erl
index da35e3fcac..4bcb26b7ea 100644
--- a/test/dynamic_ha_SUITE.erl
+++ b/test/dynamic_ha_SUITE.erl
@@ -62,6 +62,7 @@ groups() ->
{cluster_size_3, [], [
change_policy,
rapid_change,
+ failing_random_policies,
random_policy
]}
]}
@@ -258,6 +259,17 @@ promote_on_shutdown(Config) ->
random_policy(Config) ->
run_proper(fun prop_random_policy/1, [Config]).
+failing_random_policies(Config) ->
+ [A, B | _] = Nodes = rabbit_ct_broker_helpers:get_node_configs(Config,
+ nodename),
+ %% Those set of policies were found as failing by PropEr in the
+ %% `random_policy` test above. We add them explicitely here to make
+ %% sure they get tested.
+ true = test_random_policy(Config, Nodes,
+ [{nodes, [A, B]}, {nodes, [A]}]),
+ true = test_random_policy(Config, Nodes,
+ [{exactly, 3}, undefined, all, {nodes, [B]}]).
+
%%----------------------------------------------------------------------------
assert_slaves(RPCNode, QName, Exp) ->