Repository: sentry Updated Branches: refs/heads/master fd1fbf70d -> e82a8c652
SENTRY-1251: Move PolicyFileConstants to sentry-core-common(Colin Ma, reviewed by Dapeng Sun) Project: http://git-wip-us.apache.org/repos/asf/sentry/repo Commit: http://git-wip-us.apache.org/repos/asf/sentry/commit/e82a8c65 Tree: http://git-wip-us.apache.org/repos/asf/sentry/tree/e82a8c65 Diff: http://git-wip-us.apache.org/repos/asf/sentry/diff/e82a8c65 Branch: refs/heads/master Commit: e82a8c652a8f1d2a106f5cdf2df965058f937d8e Parents: fd1fbf7 Author: Colin Ma <[email protected]> Authored: Thu May 12 09:54:50 2016 +0800 Committer: Colin Ma <[email protected]> Committed: Thu May 12 09:54:50 2016 +0800 ---------------------------------------------------------------------- .../hive/SentryIniPolicyFileFormatter.java | 2 +- .../hive/TestSentryIniPolicyFileFormatter.java | 2 +- .../core/common/utils/PolicyFileConstants.java | 32 ++++++++++++++++++++ .../provider/common/PolicyFileConstants.java | 32 -------------------- .../tools/KafkaTSentryPrivilegeConvertor.java | 2 +- .../tools/SolrTSentryPrivilegeConvertor.java | 2 +- .../SentryPolicyServiceClientDefaultImpl.java | 2 +- .../thrift/SentryPolicyStoreProcessor.java | 2 +- .../db/tools/command/hive/CommandUtil.java | 2 +- .../tools/command/hive/ListPrivilegesCmd.java | 2 +- .../service/thrift/SentryServiceUtil.java | 2 +- .../thrift/TestSentryServiceImportExport.java | 2 +- .../provider/file/LocalGroupMappingService.java | 2 +- .../apache/sentry/provider/file/PolicyFile.java | 8 ++--- .../file/SimpleFileProviderBackend.java | 2 +- .../tests/e2e/hive/TestPolicyImportExport.java | 2 +- 16 files changed, 49 insertions(+), 49 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/sentry/blob/e82a8c65/sentry-binding/sentry-binding-hive-common/src/main/java/org/apache/sentry/binding/hive/SentryIniPolicyFileFormatter.java ---------------------------------------------------------------------- diff --git a/sentry-binding/sentry-binding-hive-common/src/main/java/org/apache/sentry/binding/hive/SentryIniPolicyFileFormatter.java b/sentry-binding/sentry-binding-hive-common/src/main/java/org/apache/sentry/binding/hive/SentryIniPolicyFileFormatter.java index dd5781a..34ccdc7 100644 --- a/sentry-binding/sentry-binding-hive-common/src/main/java/org/apache/sentry/binding/hive/SentryIniPolicyFileFormatter.java +++ b/sentry-binding/sentry-binding-hive-common/src/main/java/org/apache/sentry/binding/hive/SentryIniPolicyFileFormatter.java @@ -29,7 +29,7 @@ import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.Path; import org.apache.sentry.core.common.SentryConfigurationException; import org.apache.sentry.core.common.utils.SentryConstants; -import org.apache.sentry.provider.common.PolicyFileConstants; +import org.apache.sentry.core.common.utils.PolicyFileConstants; import org.apache.sentry.provider.file.PolicyFiles; import org.apache.shiro.config.Ini; import org.slf4j.Logger; http://git-wip-us.apache.org/repos/asf/sentry/blob/e82a8c65/sentry-binding/sentry-binding-hive/src/test/java/org/apache/sentry/binding/hive/TestSentryIniPolicyFileFormatter.java ---------------------------------------------------------------------- diff --git a/sentry-binding/sentry-binding-hive/src/test/java/org/apache/sentry/binding/hive/TestSentryIniPolicyFileFormatter.java b/sentry-binding/sentry-binding-hive/src/test/java/org/apache/sentry/binding/hive/TestSentryIniPolicyFileFormatter.java index 6fd1aa5..7baeee1 100644 --- a/sentry-binding/sentry-binding-hive/src/test/java/org/apache/sentry/binding/hive/TestSentryIniPolicyFileFormatter.java +++ b/sentry-binding/sentry-binding-hive/src/test/java/org/apache/sentry/binding/hive/TestSentryIniPolicyFileFormatter.java @@ -26,7 +26,7 @@ import java.util.Set; import org.apache.sentry.binding.hive.conf.HiveAuthzConf; import org.apache.sentry.core.common.utils.SentryConstants; -import org.apache.sentry.provider.common.PolicyFileConstants; +import org.apache.sentry.core.common.utils.PolicyFileConstants; import org.junit.Test; import com.google.common.collect.Maps; http://git-wip-us.apache.org/repos/asf/sentry/blob/e82a8c65/sentry-core/sentry-core-common/src/main/java/org/apache/sentry/core/common/utils/PolicyFileConstants.java ---------------------------------------------------------------------- diff --git a/sentry-core/sentry-core-common/src/main/java/org/apache/sentry/core/common/utils/PolicyFileConstants.java b/sentry-core/sentry-core-common/src/main/java/org/apache/sentry/core/common/utils/PolicyFileConstants.java new file mode 100644 index 0000000..1a5f60e --- /dev/null +++ b/sentry-core/sentry-core-common/src/main/java/org/apache/sentry/core/common/utils/PolicyFileConstants.java @@ -0,0 +1,32 @@ +/* + * 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.core.common.utils; + +public class PolicyFileConstants { + public static final String DATABASES = "databases"; + public static final String GROUPS = "groups"; + public static final String ROLES = "roles"; + public static final String USERS = "users"; + public static final String USER_ROLES = "userroles"; + public static final String PRIVILEGE_SERVER_NAME = "server"; + public static final String PRIVILEGE_DATABASE_NAME = "db"; + public static final String PRIVILEGE_TABLE_NAME = "table"; + public static final String PRIVILEGE_COLUMN_NAME = "column"; + public static final String PRIVILEGE_URI_NAME = "uri"; + public static final String PRIVILEGE_ACTION_NAME = "action"; + public static final String PRIVILEGE_GRANT_OPTION_NAME = "grantoption"; +} http://git-wip-us.apache.org/repos/asf/sentry/blob/e82a8c65/sentry-provider/sentry-provider-common/src/main/java/org/apache/sentry/provider/common/PolicyFileConstants.java ---------------------------------------------------------------------- diff --git a/sentry-provider/sentry-provider-common/src/main/java/org/apache/sentry/provider/common/PolicyFileConstants.java b/sentry-provider/sentry-provider-common/src/main/java/org/apache/sentry/provider/common/PolicyFileConstants.java deleted file mode 100644 index 5627fa2..0000000 --- a/sentry-provider/sentry-provider-common/src/main/java/org/apache/sentry/provider/common/PolicyFileConstants.java +++ /dev/null @@ -1,32 +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.provider.common; - -public class PolicyFileConstants { - public static final String DATABASES = "databases"; - public static final String GROUPS = "groups"; - public static final String ROLES = "roles"; - public static final String USERS = "users"; - public static final String USER_ROLES = "userroles"; - public static final String PRIVILEGE_SERVER_NAME = "server"; - public static final String PRIVILEGE_DATABASE_NAME = "db"; - public static final String PRIVILEGE_TABLE_NAME = "table"; - public static final String PRIVILEGE_COLUMN_NAME = "column"; - public static final String PRIVILEGE_URI_NAME = "uri"; - public static final String PRIVILEGE_ACTION_NAME = "action"; - public static final String PRIVILEGE_GRANT_OPTION_NAME = "grantoption"; -} http://git-wip-us.apache.org/repos/asf/sentry/blob/e82a8c65/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/generic/tools/KafkaTSentryPrivilegeConvertor.java ---------------------------------------------------------------------- diff --git a/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/generic/tools/KafkaTSentryPrivilegeConvertor.java b/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/generic/tools/KafkaTSentryPrivilegeConvertor.java index af73755..c7c0729 100644 --- a/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/generic/tools/KafkaTSentryPrivilegeConvertor.java +++ b/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/generic/tools/KafkaTSentryPrivilegeConvertor.java @@ -25,7 +25,7 @@ import org.apache.sentry.core.common.validator.PrivilegeValidatorContext; import org.apache.sentry.core.model.kafka.KafkaAuthorizable; import org.apache.sentry.core.model.kafka.KafkaModelAuthorizables; import org.apache.sentry.core.model.kafka.validator.KafkaPrivilegeValidator; -import org.apache.sentry.provider.common.PolicyFileConstants; +import org.apache.sentry.core.common.utils.PolicyFileConstants; import org.apache.sentry.provider.db.generic.service.thrift.TAuthorizable; import org.apache.sentry.provider.db.generic.service.thrift.TSentryGrantOption; import org.apache.sentry.provider.db.generic.service.thrift.TSentryPrivilege; http://git-wip-us.apache.org/repos/asf/sentry/blob/e82a8c65/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/generic/tools/SolrTSentryPrivilegeConvertor.java ---------------------------------------------------------------------- diff --git a/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/generic/tools/SolrTSentryPrivilegeConvertor.java b/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/generic/tools/SolrTSentryPrivilegeConvertor.java index 12c833e..29250c4 100644 --- a/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/generic/tools/SolrTSentryPrivilegeConvertor.java +++ b/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/generic/tools/SolrTSentryPrivilegeConvertor.java @@ -28,7 +28,7 @@ import org.apache.sentry.core.common.validator.PrivilegeValidatorContext; import org.apache.sentry.core.model.search.SearchModelAuthorizables; import org.apache.sentry.core.model.search.SearchPrivilegeModel; import org.apache.sentry.core.common.utils.KeyValue; -import org.apache.sentry.provider.common.PolicyFileConstants; +import org.apache.sentry.core.common.utils.PolicyFileConstants; import org.apache.sentry.provider.db.generic.service.thrift.TAuthorizable; import org.apache.sentry.provider.db.generic.service.thrift.TSentryGrantOption; import org.apache.sentry.provider.db.generic.service.thrift.TSentryPrivilege; http://git-wip-us.apache.org/repos/asf/sentry/blob/e82a8c65/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/thrift/SentryPolicyServiceClientDefaultImpl.java ---------------------------------------------------------------------- diff --git a/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/thrift/SentryPolicyServiceClientDefaultImpl.java b/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/thrift/SentryPolicyServiceClientDefaultImpl.java index 616553f..b457387 100644 --- a/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/thrift/SentryPolicyServiceClientDefaultImpl.java +++ b/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/thrift/SentryPolicyServiceClientDefaultImpl.java @@ -39,7 +39,7 @@ import org.apache.sentry.core.common.ActiveRoleSet; import org.apache.sentry.core.common.Authorizable; import org.apache.sentry.core.model.db.AccessConstants; import org.apache.sentry.core.model.db.DBModelAuthorizable; -import org.apache.sentry.provider.common.PolicyFileConstants; +import org.apache.sentry.core.common.utils.PolicyFileConstants; import org.apache.sentry.service.thrift.SentryServiceUtil; import org.apache.sentry.service.thrift.ServiceConstants; import org.apache.sentry.service.thrift.ServiceConstants.ClientConfig; http://git-wip-us.apache.org/repos/asf/sentry/blob/e82a8c65/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/thrift/SentryPolicyStoreProcessor.java ---------------------------------------------------------------------- diff --git a/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/thrift/SentryPolicyStoreProcessor.java b/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/thrift/SentryPolicyStoreProcessor.java index 79ac24b..d7c387d 100644 --- a/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/thrift/SentryPolicyStoreProcessor.java +++ b/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/thrift/SentryPolicyStoreProcessor.java @@ -32,7 +32,7 @@ import org.apache.hadoop.conf.Configuration; import org.apache.sentry.SentryUserException; import org.apache.sentry.core.model.db.AccessConstants; import org.apache.sentry.provider.common.GroupMappingService; -import org.apache.sentry.provider.common.PolicyFileConstants; +import org.apache.sentry.core.common.utils.PolicyFileConstants; import org.apache.sentry.provider.common.SentryGroupNotFoundException; import org.apache.sentry.provider.db.SentryAccessDeniedException; import org.apache.sentry.provider.db.SentryAlreadyExistsException; http://git-wip-us.apache.org/repos/asf/sentry/blob/e82a8c65/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/tools/command/hive/CommandUtil.java ---------------------------------------------------------------------- diff --git a/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/tools/command/hive/CommandUtil.java b/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/tools/command/hive/CommandUtil.java index c229374..93811f3 100644 --- a/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/tools/command/hive/CommandUtil.java +++ b/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/tools/command/hive/CommandUtil.java @@ -20,7 +20,7 @@ package org.apache.sentry.provider.db.tools.command.hive; import org.apache.commons.lang.StringUtils; import org.apache.sentry.core.common.utils.SentryConstants; import org.apache.sentry.core.common.utils.KeyValue; -import org.apache.sentry.provider.common.PolicyFileConstants; +import org.apache.sentry.core.common.utils.PolicyFileConstants; import org.apache.sentry.provider.db.service.thrift.TSentryGrantOption; import org.apache.sentry.provider.db.service.thrift.TSentryPrivilege; import org.apache.sentry.service.thrift.ServiceConstants; http://git-wip-us.apache.org/repos/asf/sentry/blob/e82a8c65/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/tools/command/hive/ListPrivilegesCmd.java ---------------------------------------------------------------------- diff --git a/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/tools/command/hive/ListPrivilegesCmd.java b/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/tools/command/hive/ListPrivilegesCmd.java index f671322..5f3e9fb 100644 --- a/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/tools/command/hive/ListPrivilegesCmd.java +++ b/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/tools/command/hive/ListPrivilegesCmd.java @@ -20,7 +20,7 @@ package org.apache.sentry.provider.db.tools.command.hive; import com.google.common.collect.Lists; import org.apache.commons.lang.StringUtils; import org.apache.sentry.core.common.utils.SentryConstants; -import org.apache.sentry.provider.common.PolicyFileConstants; +import org.apache.sentry.core.common.utils.PolicyFileConstants; import org.apache.sentry.provider.db.service.thrift.SentryPolicyServiceClient; import org.apache.sentry.provider.db.service.thrift.TSentryGrantOption; import org.apache.sentry.provider.db.service.thrift.TSentryPrivilege; http://git-wip-us.apache.org/repos/asf/sentry/blob/e82a8c65/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/service/thrift/SentryServiceUtil.java ---------------------------------------------------------------------- diff --git a/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/service/thrift/SentryServiceUtil.java b/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/service/thrift/SentryServiceUtil.java index ae847eb..02ae071 100644 --- a/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/service/thrift/SentryServiceUtil.java +++ b/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/service/thrift/SentryServiceUtil.java @@ -25,7 +25,7 @@ import java.util.Map; import org.apache.commons.lang.StringUtils; import org.apache.sentry.core.common.utils.SentryConstants; import org.apache.sentry.core.common.utils.KeyValue; -import org.apache.sentry.provider.common.PolicyFileConstants; +import org.apache.sentry.core.common.utils.PolicyFileConstants; import org.apache.sentry.provider.db.service.thrift.TSentryGrantOption; import org.apache.sentry.provider.db.service.thrift.TSentryPrivilege; import org.apache.sentry.service.thrift.ServiceConstants.PrivilegeScope; http://git-wip-us.apache.org/repos/asf/sentry/blob/e82a8c65/sentry-provider/sentry-provider-db/src/test/java/org/apache/sentry/provider/db/service/thrift/TestSentryServiceImportExport.java ---------------------------------------------------------------------- diff --git a/sentry-provider/sentry-provider-db/src/test/java/org/apache/sentry/provider/db/service/thrift/TestSentryServiceImportExport.java b/sentry-provider/sentry-provider-db/src/test/java/org/apache/sentry/provider/db/service/thrift/TestSentryServiceImportExport.java index 5aec49c..930b473 100644 --- a/sentry-provider/sentry-provider-db/src/test/java/org/apache/sentry/provider/db/service/thrift/TestSentryServiceImportExport.java +++ b/sentry-provider/sentry-provider-db/src/test/java/org/apache/sentry/provider/db/service/thrift/TestSentryServiceImportExport.java @@ -26,7 +26,7 @@ import java.util.Map; import java.util.Set; import org.apache.sentry.core.common.utils.SentryConstants; -import org.apache.sentry.provider.common.PolicyFileConstants; +import org.apache.sentry.core.common.utils.PolicyFileConstants; import org.apache.sentry.service.thrift.SentryServiceIntegrationBase; import org.junit.Before; import org.junit.BeforeClass; http://git-wip-us.apache.org/repos/asf/sentry/blob/e82a8c65/sentry-provider/sentry-provider-file/src/main/java/org/apache/sentry/provider/file/LocalGroupMappingService.java ---------------------------------------------------------------------- diff --git a/sentry-provider/sentry-provider-file/src/main/java/org/apache/sentry/provider/file/LocalGroupMappingService.java b/sentry-provider/sentry-provider-file/src/main/java/org/apache/sentry/provider/file/LocalGroupMappingService.java index 72e219d..35cb3c7 100644 --- a/sentry-provider/sentry-provider-file/src/main/java/org/apache/sentry/provider/file/LocalGroupMappingService.java +++ b/sentry-provider/sentry-provider-file/src/main/java/org/apache/sentry/provider/file/LocalGroupMappingService.java @@ -28,7 +28,7 @@ import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.fs.Path; import org.apache.sentry.core.common.utils.SentryConstants; import org.apache.sentry.provider.common.GroupMappingService; -import org.apache.sentry.provider.common.PolicyFileConstants; +import org.apache.sentry.core.common.utils.PolicyFileConstants; import org.apache.sentry.provider.common.SentryGroupNotFoundException; import org.apache.shiro.config.Ini; import org.apache.shiro.config.Ini.Section; http://git-wip-us.apache.org/repos/asf/sentry/blob/e82a8c65/sentry-provider/sentry-provider-file/src/main/java/org/apache/sentry/provider/file/PolicyFile.java ---------------------------------------------------------------------- diff --git a/sentry-provider/sentry-provider-file/src/main/java/org/apache/sentry/provider/file/PolicyFile.java b/sentry-provider/sentry-provider-file/src/main/java/org/apache/sentry/provider/file/PolicyFile.java index 991a95f..4a9531d 100644 --- a/sentry-provider/sentry-provider-file/src/main/java/org/apache/sentry/provider/file/PolicyFile.java +++ b/sentry-provider/sentry-provider-file/src/main/java/org/apache/sentry/provider/file/PolicyFile.java @@ -17,10 +17,10 @@ package org.apache.sentry.provider.file; -import static org.apache.sentry.provider.common.PolicyFileConstants.DATABASES; -import static org.apache.sentry.provider.common.PolicyFileConstants.GROUPS; -import static org.apache.sentry.provider.common.PolicyFileConstants.ROLES; -import static org.apache.sentry.provider.common.PolicyFileConstants.USERS; +import static org.apache.sentry.core.common.utils.PolicyFileConstants.DATABASES; +import static org.apache.sentry.core.common.utils.PolicyFileConstants.GROUPS; +import static org.apache.sentry.core.common.utils.PolicyFileConstants.ROLES; +import static org.apache.sentry.core.common.utils.PolicyFileConstants.USERS; import java.io.File; import java.util.Collection; http://git-wip-us.apache.org/repos/asf/sentry/blob/e82a8c65/sentry-provider/sentry-provider-file/src/main/java/org/apache/sentry/provider/file/SimpleFileProviderBackend.java ---------------------------------------------------------------------- diff --git a/sentry-provider/sentry-provider-file/src/main/java/org/apache/sentry/provider/file/SimpleFileProviderBackend.java b/sentry-provider/sentry-provider-file/src/main/java/org/apache/sentry/provider/file/SimpleFileProviderBackend.java index 3c0e349..079d52a 100644 --- a/sentry-provider/sentry-provider-file/src/main/java/org/apache/sentry/provider/file/SimpleFileProviderBackend.java +++ b/sentry-provider/sentry-provider-file/src/main/java/org/apache/sentry/provider/file/SimpleFileProviderBackend.java @@ -36,7 +36,7 @@ import org.apache.sentry.core.common.SentryConfigurationException; import org.apache.sentry.policy.common.PrivilegeUtils; import org.apache.sentry.core.common.validator.PrivilegeValidator; import org.apache.sentry.core.common.validator.PrivilegeValidatorContext; -import org.apache.sentry.provider.common.PolicyFileConstants; +import org.apache.sentry.core.common.utils.PolicyFileConstants; import org.apache.sentry.provider.common.ProviderBackend; import org.apache.sentry.provider.common.ProviderBackendContext; import org.apache.shiro.config.Ini; http://git-wip-us.apache.org/repos/asf/sentry/blob/e82a8c65/sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hive/TestPolicyImportExport.java ---------------------------------------------------------------------- diff --git a/sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hive/TestPolicyImportExport.java b/sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hive/TestPolicyImportExport.java index 0d09afd..3f57a00 100644 --- a/sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hive/TestPolicyImportExport.java +++ b/sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hive/TestPolicyImportExport.java @@ -29,7 +29,7 @@ import org.apache.sentry.binding.hive.SentryPolicyFileFormatFactory; import org.apache.sentry.binding.hive.SentryPolicyFileFormatter; import org.apache.sentry.binding.hive.authz.SentryConfigTool; import org.apache.sentry.core.common.utils.SentryConstants; -import org.apache.sentry.provider.common.PolicyFileConstants; +import org.apache.sentry.core.common.utils.PolicyFileConstants; import org.junit.Before; import org.junit.BeforeClass; import org.junit.Test;
