diff options
| author | Diana Corbacho <diana@rabbitmq.com> | 2017-05-12 10:05:10 +0100 |
|---|---|---|
| committer | Diana Corbacho <diana@rabbitmq.com> | 2017-05-12 10:06:10 +0100 |
| commit | 6d52987004bec91d0203ca2f27b2c8d22134af17 (patch) | |
| tree | 278c627030c20f2b1a0e4ceec72e2faaf7c560a7 /test | |
| parent | 53d71dfa948ce0db940c8a72e7d5e18c64b2a024 (diff) | |
| download | rabbitmq-server-git-6d52987004bec91d0203ca2f27b2c8d22134af17.tar.gz | |
Start/stop test node after VM stops because of rabbit app failures
rabbitmq-server-1216
[#145106709]
Diffstat (limited to 'test')
| -rw-r--r-- | test/clustering_management_SUITE.erl | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/test/clustering_management_SUITE.erl b/test/clustering_management_SUITE.erl index 2484f8c910..ecfeecb6e8 100644 --- a/test/clustering_management_SUITE.erl +++ b/test/clustering_management_SUITE.erl @@ -180,7 +180,8 @@ join_cluster_bad_operations(Config) -> ok = stop_app(Hare), assert_failure(fun () -> start_app(Hare) end), ok = start_app(Rabbit), - ok = start_app(Hare), + %% The Erlang VM has stopped after previous rabbit app failure + ok = rabbit_ct_broker_helpers:start_node(Config, Hare), ok. %% This tests that the nodes in the cluster are notified immediately of a node @@ -532,25 +533,34 @@ erlang_config(Config) -> ok = reset(Hare), ok = rpc:call(Hare, application, set_env, [rabbit, cluster_nodes, {["Mike's computer"], disc}]), + %% Rabbit app stops abnormally, node goes down assert_failure(fun () -> start_app(Hare) end), assert_not_clustered(Rabbit), %% If we use an invalid node type, the node fails to start. + %% The Erlang VM has stopped after previous rabbit app failure + ok = rabbit_ct_broker_helpers:start_node(Config, Hare), ok = stop_app(Hare), ok = reset(Hare), ok = rpc:call(Hare, application, set_env, [rabbit, cluster_nodes, {[Rabbit], blue}]), + %% Rabbit app stops abnormally, node goes down assert_failure(fun () -> start_app(Hare) end), assert_not_clustered(Rabbit), %% If we use an invalid cluster_nodes conf, the node fails to start. + %% The Erlang VM has stopped after previous rabbit app failure + ok = rabbit_ct_broker_helpers:start_node(Config, Hare), ok = stop_app(Hare), ok = reset(Hare), ok = rpc:call(Hare, application, set_env, [rabbit, cluster_nodes, true]), + %% Rabbit app stops abnormally, node goes down assert_failure(fun () -> start_app(Hare) end), assert_not_clustered(Rabbit), + %% The Erlang VM has stopped after previous rabbit app failure + ok = rabbit_ct_broker_helpers:start_node(Config, Hare), ok = stop_app(Hare), ok = reset(Hare), ok = rpc:call(Hare, application, set_env, |
