summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDaniil Fedotov <dfedotov@pivotal.io>2017-10-26 16:43:14 +0100
committerDaniil Fedotov <dfedotov@pivotal.io>2017-10-26 16:43:14 +0100
commitb60775ed006f5f621b0ce4a1e71a7c97d8ee2ff6 (patch)
treeb285d56ba1b09c1bc53f3abe1c7032f8d969a1dc /test
parent2545c1b136f4993019bf8368057def2a546ed9f8 (diff)
downloadrabbitmq-server-git-b60775ed006f5f621b0ce4a1e71a7c97d8ee2ff6.tar.gz
Start `rabbit` application as temporary in tests.
Some tests output can break when `rabbit` application failure stops the node. Make it possible to configure restart type.
Diffstat (limited to 'test')
-rw-r--r--test/unit_SUITE.erl9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/unit_SUITE.erl b/test/unit_SUITE.erl
index ac7f289ae3..34de66be3a 100644
--- a/test/unit_SUITE.erl
+++ b/test/unit_SUITE.erl
@@ -332,10 +332,11 @@ do_decrypt_start_app(Config, Passphrase) ->
%%
%% We expect a failure *after* the decrypting has been done.
try
- rabbit:start_apps([rabbit_shovel_test])
+ rabbit:start_apps([rabbit_shovel_test], [{rabbit, temporary}])
catch _:_ ->
ok
- end,
+ end
+ ,
%% Check if the values have been decrypted.
{ok, Shovels} = application:get_env(rabbit_shovel_test, shovels),
{_, FirstShovel} = lists:keyfind(my_first_shovel, 1, Shovels),
@@ -359,7 +360,7 @@ decrypt_start_app_undefined(Config) ->
%%
%% We expect a failure during decryption because the passphrase is missing.
try
- rabbit:start_apps([rabbit_shovel_test])
+ rabbit:start_apps([rabbit_shovel_test], [{rabbit, temporary}])
catch
exit:{bad_configuration, config_entry_decoder} -> ok;
_:_ -> exit(unexpected_exception)
@@ -379,7 +380,7 @@ decrypt_start_app_wrong_passphrase(Config) ->
%%
%% We expect a failure during decryption because the passphrase is wrong.
try
- rabbit:start_apps([rabbit_shovel_test])
+ rabbit:start_apps([rabbit_shovel_test], [{rabbit, temporary}])
catch
exit:{decryption_error,_,_} -> ok;
_:_ -> exit(unexpected_exception)