diff options
| author | Jean-Sébastien Pédron <jean-sebastien@rabbitmq.com> | 2016-07-21 15:37:02 +0200 |
|---|---|---|
| committer | Diana Corbacho <diana@rabbitmq.com> | 2016-08-31 10:46:42 +0100 |
| commit | 52b6c7db2c0ddd446d1d8f1c08e22e144887d06a (patch) | |
| tree | 5c1f45eb635e2450d6d62cc3db97e027395cc834 | |
| parent | f459f29a2ff07c0d3580d16e059474944c40ea8b (diff) | |
| download | rabbitmq-server-git-52b6c7db2c0ddd446d1d8f1c08e22e144887d06a.tar.gz | |
dynamic_ha_SUITE: Explicitely add failing policies found by PropEr
References #889.
[#126767013]
| -rw-r--r-- | test/dynamic_ha_SUITE.erl | 12 |
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) -> |
