Skip to content

Commit ae85f5a

Browse files
author
Alexandru Scvortov
committed
added tests
1 parent a92d59e commit ae85f5a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/src/com/rabbitmq/client/test/server/Permissions.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ protected void addRestrictedAccount()
8787
runCtl("add_vhost /test");
8888
runCtl("set_permissions -p /test test configure write read");
8989
runCtl("set_permissions -p /test testadmin \".*\" \".*\" \".*\"");
90-
runCtl("set_permissions -p /test noaccess \"\" \"\" \"\"");
90+
runCtl("set_permissions -p /test -s all noaccess \"\" \"\" \"\"");
9191
}
9292

9393
protected void deleteRestrictedAccount()
@@ -271,6 +271,11 @@ public void with(String _) throws IOException {
271271
noAccessCh.queueDeclare("justaqueue", false, false, true, null);
272272
}}
273273
);
274+
expectExceptionRun(AMQP.ACCESS_REFUSED, new WithName() {
275+
public void with(String _) throws IOException {
276+
noAccessCh.queueDeclare();
277+
}}
278+
);
274279
expectExceptionRun(AMQP.ACCESS_REFUSED, new WithName() {
275280
public void with(String _) throws IOException {
276281
noAccessCh.queueDelete("configure");

0 commit comments

Comments
 (0)