This commit is contained in:
gtully 2013-11-12 16:48:06 +00:00
parent 02a821defe
commit 2fd52c9dcf
1 changed files with 19 additions and 0 deletions

View File

@ -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);