activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gtu...@apache.org
Subject git commit: https://issues.apache.org/jira/browse/AMQ-4682 - add removal modification test
Date Tue, 12 Nov 2013 16:50:28 GMT
Updated Branches:
  refs/heads/trunk 02a821def -> 2fd52c9dc


https://issues.apache.org/jira/browse/AMQ-4682 - add removal modification test


Project: http://git-wip-us.apache.org/repos/asf/activemq/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq/commit/2fd52c9d
Tree: http://git-wip-us.apache.org/repos/asf/activemq/tree/2fd52c9d
Diff: http://git-wip-us.apache.org/repos/asf/activemq/diff/2fd52c9d

Branch: refs/heads/trunk
Commit: 2fd52c9dcf6740d35ed78c0a5d88937a13416412
Parents: 02a821d
Author: gtully <gary.tully@gmail.com>
Authored: Tue Nov 12 16:48:06 2013 +0000
Committer: gtully <gary.tully@gmail.com>
Committed: Tue Nov 12 16:50:05 2013 +0000

----------------------------------------------------------------------
 .../org/apache/activemq/AuthorizationTest.java   | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq/blob/2fd52c9d/activemq-runtime-config/src/test/java/org/apache/activemq/AuthorizationTest.java
----------------------------------------------------------------------
diff --git a/activemq-runtime-config/src/test/java/org/apache/activemq/AuthorizationTest.java
b/activemq-runtime-config/src/test/java/org/apache/activemq/AuthorizationTest.java
index 3f12135..ce3e71e 100644
--- a/activemq-runtime-config/src/test/java/org/apache/activemq/AuthorizationTest.java
+++ b/activemq-runtime-config/src/test/java/org/apache/activemq/AuthorizationTest.java
@@ -49,6 +49,25 @@ public class AuthorizationTest extends RuntimeConfigTestSupport {
         assertAllowedTemp("guest");
     }
 
+    @Test
+    public void testModRm() throws Exception {
+        final String brokerConfig = configurationSeed + "-auth-rm-broker";
+        applyNewConfig(brokerConfig, configurationSeed + "-users-guests");
+        startBroker(brokerConfig);
+        assertTrue("broker alive", brokerService.isStarted());
+
+        assertAllowed("user", "USERS.A");
+        assertAllowed("guest", "GUESTS.A");
+        assertDenied("user", "GUESTS.A");
+        assertAllowedTemp("guest");
+
+        applyNewConfig(brokerConfig, configurationSeed + "-users", SLEEP);
+
+        assertAllowed("user", "USERS.A");
+        assertDenied("user", "GUESTS.A");
+        assertDeniedTemp("guest");
+    }
+
     private void assertDeniedTemp(String userPass) {
         try {
             assertAllowedTemp(userPass);


Mime
View raw message