You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sentry.apache.org by xi...@apache.org on 2015/01/26 08:06:10 UTC
incubator-sentry git commit: SENTRY-576: Enable unit test
TestSentryServiceIntegration.testListByAuthDB (Reviewed by Dapeng sun)
Repository: incubator-sentry
Updated Branches:
refs/heads/master 78eceb8fb -> 4ef1792c0
SENTRY-576: Enable unit test TestSentryServiceIntegration.testListByAuthDB (Reviewed by Dapeng sun)
Project: http://git-wip-us.apache.org/repos/asf/incubator-sentry/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-sentry/commit/4ef1792c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-sentry/tree/4ef1792c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-sentry/diff/4ef1792c
Branch: refs/heads/master
Commit: 4ef1792c097dac4ddc08343e2ab0a9c3c810a8dc
Parents: 78eceb8
Author: Huang Xiaomeng <xi...@intel.com>
Authored: Mon Jan 26 14:44:22 2015 +0800
Committer: Huang Xiaomeng <xi...@intel.com>
Committed: Mon Jan 26 14:44:22 2015 +0800
----------------------------------------------------------------------
.../db/service/thrift/TestSentryServiceIntegration.java | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-sentry/blob/4ef1792c/sentry-provider/sentry-provider-db/src/test/java/org/apache/sentry/provider/db/service/thrift/TestSentryServiceIntegration.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/test/java/org/apache/sentry/provider/db/service/thrift/TestSentryServiceIntegration.java b/sentry-provider/sentry-provider-db/src/test/java/org/apache/sentry/provider/db/service/thrift/TestSentryServiceIntegration.java
index 033af1c..d4dfa23 100644
--- a/sentry-provider/sentry-provider-db/src/test/java/org/apache/sentry/provider/db/service/thrift/TestSentryServiceIntegration.java
+++ b/sentry-provider/sentry-provider-db/src/test/java/org/apache/sentry/provider/db/service/thrift/TestSentryServiceIntegration.java
@@ -407,6 +407,7 @@ public class TestSentryServiceIntegration extends SentryServiceIntegrationBase {
}});
}
+ @Test
public void testListByAuthDB() throws Exception {
runTestAsSubject(new TestOperation(){
@Override
@@ -557,11 +558,9 @@ public class TestSentryServiceIntegration extends SentryServiceIntegrationBase {
// build expected output
TSentryPrivilegeMap db1RoleToPrivMap = new TSentryPrivilegeMap(
new TreeMap<String, Set<TSentryPrivilege>>());
- db1RoleToPrivMap.getPrivilegeMap()
- .put(roleName1,
+ db1RoleToPrivMap.getPrivilegeMap().put(roleName1,
Sets.newHashSet(role1db2tab));
- db1RoleToPrivMap.getPrivilegeMap()
- .put(roleName2,
+ db1RoleToPrivMap.getPrivilegeMap().put(roleName2,
Sets.newHashSet(role2db2tab));
Map<TSentryAuthorizable, TSentryPrivilegeMap> expectedResults = Maps
.newTreeMap();