summaryrefslogtreecommitdiff
path: root/qpid/java/broker/src/test
diff options
context:
space:
mode:
authorKeith Wall <kwall@apache.org>2011-11-24 10:43:24 +0000
committerKeith Wall <kwall@apache.org>2011-11-24 10:43:24 +0000
commit23de180dec4b523e67630d9215b6457459fc7020 (patch)
tree50a73e0050d341d5d2409db9757218feee14a862 /qpid/java/broker/src/test
parent1e320902f61528648056f958ba45535d85b921e1 (diff)
downloadqpid-python-23de180dec4b523e67630d9215b6457459fc7020.tar.gz
QPID-3641: ACLV2 Simplifications and Improvements for Java Broker
Improvements and simplifications to ACL V2 for the Java Broker: 1) Removed 'EXECUTE' operation (we now just have ACCESS and UPDATE like C++ broker) 2) Enable users with management rights for a procedure to complete that procedure without matching AMQP rights (configurable) 3) Fix up system tests (make clearer, remove need for lots of support files) 4) Fix disparity in DENY_LOG and DENY-LOG values between brokers. 5) Get rid of transitive/expand permission rules Work from Robbie Gemmell and myself. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1205782 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/broker/src/test')
-rw-r--r--qpid/java/broker/src/test/java/org/apache/qpid/server/configuration/ServerConfigurationTest.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/qpid/java/broker/src/test/java/org/apache/qpid/server/configuration/ServerConfigurationTest.java b/qpid/java/broker/src/test/java/org/apache/qpid/server/configuration/ServerConfigurationTest.java
index 9afd2a45a9..9ee2ed3812 100644
--- a/qpid/java/broker/src/test/java/org/apache/qpid/server/configuration/ServerConfigurationTest.java
+++ b/qpid/java/broker/src/test/java/org/apache/qpid/server/configuration/ServerConfigurationTest.java
@@ -303,6 +303,18 @@ public class ServerConfigurationTest extends QpidTestCase
assertEquals(false, _serverConfig.getManagementEnabled());
}
+ public void testGetManagementRightsInferAllAccess() throws Exception
+ {
+ _serverConfig.initialise();
+
+ //check default
+ assertTrue("default should be true", _serverConfig.getManagementRightsInferAllAccess());
+
+ //update it
+ _config.setProperty("management.managementRightsInferAllAccess", "false");
+ assertFalse("New value should be false", _serverConfig.getManagementRightsInferAllAccess());
+ }
+
public void testGetHeartBeatDelay() throws ConfigurationException
{
// Check default