summaryrefslogtreecommitdiff
path: root/test/src
diff options
context:
space:
mode:
Diffstat (limited to 'test/src')
-rw-r--r--test/src/rabbit_tests.erl8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/src/rabbit_tests.erl b/test/src/rabbit_tests.erl
index e85cf98864..a96a9d8f39 100644
--- a/test/src/rabbit_tests.erl
+++ b/test/src/rabbit_tests.erl
@@ -1015,6 +1015,11 @@ test_user_management() ->
TestTags([administrator]),
TestTags([]),
+ %% user authentication
+ ok = control_action(auth_user, ["foo", "baz"]),
+ {refused, _User, _Format, _Params} =
+ control_action(auth_user, ["foo", "bar"]),
+
%% vhost creation
ok = control_action(add_vhost, ["/testhost"]),
{error, {vhost_already_exists, _}} =
@@ -1731,6 +1736,9 @@ control_action(Command, Node, Args, Opts) ->
ok ->
io:format("done.~n"),
ok;
+ {ok, Result} ->
+ rabbit_ctl_misc:print_cmd_result(Command, Result),
+ ok;
Other ->
io:format("failed.~n"),
Other