Skip to content

Commit c1162eb

Browse files
author
Alexandru Scvortov
committed
improve coverage of rabbit_control
1 parent 0475dc4 commit c1162eb

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/rabbit_tests.erl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -757,13 +757,21 @@ test_topic_expect_match(X, List) ->
757757
end, List).
758758

759759
test_app_management() ->
760+
control_action(wait, [mnesia:system_info(directory) ++ ".pid"]),
760761
%% starting, stopping, status
762+
ok = control_action(trace_on, []),
761763
ok = control_action(stop_app, []),
762764
ok = control_action(stop_app, []),
763765
ok = control_action(status, []),
766+
ok = control_action(cluster_status, []),
767+
ok = control_action(environment, []),
764768
ok = control_action(start_app, []),
765769
ok = control_action(start_app, []),
766770
ok = control_action(status, []),
771+
ok = control_action(report, []),
772+
ok = control_action(cluster_status, []),
773+
ok = control_action(environment, []),
774+
ok = control_action(trace_off, []),
767775
passed.
768776

769777
test_log_management() ->
@@ -1146,6 +1154,7 @@ test_user_management() ->
11461154
ok = control_action(add_user, ["foo", "bar"]),
11471155
{error, {user_already_exists, _}} =
11481156
control_action(add_user, ["foo", "bar"]),
1157+
ok = control_action(clear_password, ["foo"]),
11491158
ok = control_action(change_password, ["foo", "baz"]),
11501159

11511160
TestTags = fun (Tags) ->

0 commit comments

Comments
 (0)