summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorGerhard Lazu <gerhard@users.noreply.github.com>2017-10-27 12:26:43 +0100
committerGitHub <noreply@github.com>2017-10-27 12:26:43 +0100
commit30864d2a57a4d475eef672885c509c28301165fe (patch)
treec25191f541e44d08f36a303fb93758479025f623 /test
parent7e1f4238cf9f9d6e91ecc260de3166db7d11e218 (diff)
parentb60775ed006f5f621b0ce4a1e71a7c97d8ee2ff6 (diff)
downloadrabbitmq-server-git-30864d2a57a4d475eef672885c509c28301165fe.tar.gz
Merge pull request #1406 from rabbitmq/rabbitmq-server-1216-backport
Start `rabbit` application as temporary in tests.
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)