Skip to content

Commit b450b96

Browse files
author
Simon MacMullen
committed
Merge bug22964 into default
2 parents f12188a + b94b3a2 commit b450b96

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
@@ -86,7 +86,7 @@ protected void addRestrictedAccount()
8686
runCtl("add_vhost /test");
8787
runCtl("set_permissions -p /test test configure write read");
8888
runCtl("set_permissions -p /test testadmin \".*\" \".*\" \".*\"");
89-
runCtl("set_permissions -p /test noaccess \"\" \"\" \"\"");
89+
runCtl("set_permissions -p /test -s all noaccess \"\" \"\" \"\"");
9090
}
9191

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

0 commit comments

Comments
 (0)