Repository: sentry Updated Branches: refs/heads/master 8ee4f4b85 -> 24c1db670
SENTRY-1458 - Remove unused file from Kafka tests. Reviewed by akolb. Project: http://git-wip-us.apache.org/repos/asf/sentry/repo Commit: http://git-wip-us.apache.org/repos/asf/sentry/commit/24c1db67 Tree: http://git-wip-us.apache.org/repos/asf/sentry/tree/24c1db67 Diff: http://git-wip-us.apache.org/repos/asf/sentry/diff/24c1db67 Branch: refs/heads/master Commit: 24c1db670a0af4d97b9552fdca91b8ed5da953c9 Parents: 8ee4f4b Author: Colm O hEigeartaigh <[email protected]> Authored: Mon Aug 28 17:11:19 2017 +0100 Committer: Colm O hEigeartaigh <[email protected]> Committed: Mon Aug 28 17:11:19 2017 +0100 ---------------------------------------------------------------------- .../tests/e2e/kafka/CustomPrincipalBuilder.java | 47 -------------------- 1 file changed, 47 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/sentry/blob/24c1db67/sentry-tests/sentry-tests-kafka/src/main/java/org/apache/sentry/tests/e2e/kafka/CustomPrincipalBuilder.java ---------------------------------------------------------------------- diff --git a/sentry-tests/sentry-tests-kafka/src/main/java/org/apache/sentry/tests/e2e/kafka/CustomPrincipalBuilder.java b/sentry-tests/sentry-tests-kafka/src/main/java/org/apache/sentry/tests/e2e/kafka/CustomPrincipalBuilder.java deleted file mode 100644 index 5531fcb..0000000 --- a/sentry-tests/sentry-tests-kafka/src/main/java/org/apache/sentry/tests/e2e/kafka/CustomPrincipalBuilder.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.apache.sentry.tests.e2e.kafka; - -import org.apache.kafka.common.KafkaException; -import org.apache.kafka.common.network.Authenticator; -import org.apache.kafka.common.network.TransportLayer; -import org.apache.kafka.common.security.auth.PrincipalBuilder; - -import java.security.Principal; -import java.util.Map; - -public class CustomPrincipalBuilder implements PrincipalBuilder { - @Override - public void configure(Map<String, ?> map) { - - } - - @Override - public Principal buildPrincipal(TransportLayer transportLayer, Authenticator authenticator) throws KafkaException { - try { - return transportLayer.peerPrincipal(); - } catch (Exception e) { - throw new KafkaException("Failed to build principal due to: ", e); - } - } - - @Override - public void close() throws KafkaException { - - } -}
