use of org.apache.hbase.thirdparty.com.google.protobuf.Service in project hbase by apache.
the class TestRpcAccessChecks method testExecService.
@Test
public void testExecService() throws Exception {
Action action = (admin) -> {
TestRpcServiceProtos.TestProtobufRpcProto.BlockingInterface service = TestRpcServiceProtos.TestProtobufRpcProto.newBlockingStub(admin.coprocessorService());
service.ping(null, TestProtos.EmptyRequestProto.getDefaultInstance());
};
verifyAllowed(USER_ADMIN, action);
verifyAllowed(USER_GROUP_ADMIN, action);
// This is same as above verifyAccessDenied
verifiedDeniedServiceException(USER_NON_ADMIN, action);
}
Aggregations