use of org.apache.storm.security.auth.authorizer.DenyAuthorizer in project storm by apache.
the class DRPCTest method testDeny.
@Test
public void testDeny() throws Exception {
try (DRPC server = new DRPC(new StormMetricsRegistry(), new DenyAuthorizer(), 100)) {
assertThrows(() -> server.executeBlocking("testing", "test"), AuthorizationException.class);
assertThrows(() -> server.fetchRequest("testing"), AuthorizationException.class);
}
}
Aggregations