diff options
| author | Alexandru Scvortov <alexandru@rabbitmq.com> | 2010-07-14 12:03:25 +0100 |
|---|---|---|
| committer | Alexandru Scvortov <alexandru@rabbitmq.com> | 2010-07-14 12:03:25 +0100 |
| commit | c352c9cde25e776aeeb923e0adfc3f89340beaec (patch) | |
| tree | 6179673e75b9a19e0c076bc9f4a2fde52cd51f3d | |
| parent | 1849d6af7ea940f557a643c30ff67e091a3f863e (diff) | |
| download | rabbitmq-server-git-c352c9cde25e776aeeb923e0adfc3f89340beaec.tar.gz | |
added coverage tests
| -rw-r--r-- | src/rabbit_tests.erl | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/rabbit_tests.erl b/src/rabbit_tests.erl index ff7c07e37e..e1c4db33da 100644 --- a/src/rabbit_tests.erl +++ b/src/rabbit_tests.erl @@ -747,6 +747,8 @@ test_user_management() -> control_action(list_permissions, ["-p", "/testhost"]), {error, {invalid_regexp, _, _}} = control_action(set_permissions, ["guest", "+foo", ".*", ".*"]), + {error, {invalid_check_flag, _}} = + control_action(set_permissions, ["-check_mate", "guest", "foo", ".*", ".*"]), %% user creation ok = control_action(add_user, ["foo", "bar"]), @@ -766,6 +768,13 @@ test_user_management() -> "foo", ".*", ".*", ".*"]), ok = control_action(set_permissions, ["-p", "/testhost", "foo", ".*", ".*", ".*"]), + ok = control_action(set_permissions, ["-p", "/testhost", + "-check_user_named", + "foo", ".*", ".*", ".*"]), + ok = control_action(set_permissions, ["-p", "/testhost", + "-check_all_resources", + "foo", ".*", ".*", ".*"]), + ok = control_action(list_permissions, ["-p", "/testhost"]), ok = control_action(list_permissions, ["-p", "/testhost"]), ok = control_action(list_user_permissions, ["foo"]), |
