mirror of https://github.com/apache/activemq.git
https://issues.apache.org/jira/browse/AMQ-4682 - add removal modification test
This commit is contained in:
parent
02a821defe
commit
2fd52c9dcf
|
@ -49,6 +49,25 @@ public class AuthorizationTest extends RuntimeConfigTestSupport {
|
||||||
assertAllowedTemp("guest");
|
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) {
|
private void assertDeniedTemp(String userPass) {
|
||||||
try {
|
try {
|
||||||
assertAllowedTemp(userPass);
|
assertAllowedTemp(userPass);
|
||||||
|
|
Loading…
Reference in New Issue