Update clustering management test to support transient rabbit app
This commit is contained in:
parent
30864d2a57
commit
7da27f3d3b
|
@ -183,7 +183,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
|
||||
|
@ -530,7 +531,9 @@ erlang_config(Config) ->
|
|||
assert_failure(fun () -> start_app(Hare) end),
|
||||
assert_not_clustered(Rabbit),
|
||||
|
||||
%% If we use an invalid node name, the node fails to start.
|
||||
%% 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,
|
||||
|
@ -539,6 +542,8 @@ erlang_config(Config) ->
|
|||
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,
|
||||
|
@ -547,6 +552,8 @@ erlang_config(Config) ->
|
|||
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,
|
||||
|
@ -554,6 +561,8 @@ erlang_config(Config) ->
|
|||
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,
|
||||
|
@ -691,6 +700,8 @@ assert_failure(Fun) ->
|
|||
{error, Reason} -> Reason;
|
||||
{error_string, Reason} -> Reason;
|
||||
{badrpc, {'EXIT', Reason}} -> Reason;
|
||||
%% Failure to start an app result in node shutdown
|
||||
{badrpc, nodedown} -> nodedown;
|
||||
{badrpc_multi, Reason, _Nodes} -> Reason;
|
||||
Other -> exit({expected_failure, Other})
|
||||
end.
|
||||
|
|
Loading…
Reference in New Issue