You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ranger.apache.org by co...@apache.org on 2017/08/16 11:27:21 UTC
[2/2] ranger git commit: RANGER-1734 - "Close the connection in the
HIVERangerAuthorizerTest"
RANGER-1734 - "Close the connection in the HIVERangerAuthorizerTest"
Signed-off-by: Colm O hEigeartaigh <co...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/ranger/repo
Commit: http://git-wip-us.apache.org/repos/asf/ranger/commit/f7230f70
Tree: http://git-wip-us.apache.org/repos/asf/ranger/tree/f7230f70
Diff: http://git-wip-us.apache.org/repos/asf/ranger/diff/f7230f70
Branch: refs/heads/master
Commit: f7230f70a4de21c7bac9028a05f9f7472077e809
Parents: 3dc2136
Author: Colm O hEigeartaigh <co...@apache.org>
Authored: Tue Aug 15 10:04:48 2017 +0100
Committer: Colm O hEigeartaigh <co...@apache.org>
Committed: Wed Aug 16 12:17:59 2017 +0100
----------------------------------------------------------------------
.../apache/ranger/services/hive/HIVERangerAuthorizerTest.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ranger/blob/f7230f70/hive-agent/src/test/java/org/apache/ranger/services/hive/HIVERangerAuthorizerTest.java
----------------------------------------------------------------------
diff --git a/hive-agent/src/test/java/org/apache/ranger/services/hive/HIVERangerAuthorizerTest.java b/hive-agent/src/test/java/org/apache/ranger/services/hive/HIVERangerAuthorizerTest.java
index c6f0b8f..2c9e955 100644
--- a/hive-agent/src/test/java/org/apache/ranger/services/hive/HIVERangerAuthorizerTest.java
+++ b/hive-agent/src/test/java/org/apache/ranger/services/hive/HIVERangerAuthorizerTest.java
@@ -130,13 +130,13 @@ public class HIVERangerAuthorizerTest {
statement.close();
connection.close();
-
+
// Enable ranger authorization after the initial db setup and table creating is done.
conf.set(HiveConf.ConfVars.HIVE_AUTHORIZATION_ENABLED.varname, "true");
conf.set(HiveConf.ConfVars.HIVE_SERVER2_ENABLE_DOAS.varname, "true");
conf.set(HiveConf.ConfVars.HIVE_AUTHORIZATION_MANAGER.varname,
"org.apache.ranger.authorization.hive.authorizer.RangerHiveAuthorizerFactory");
-
+
}
@org.junit.AfterClass
@@ -907,6 +907,7 @@ public class HIVERangerAuthorizerTest {
Statement statement = connection.createStatement();
Assert.assertTrue(statement.execute("show grant user admin"));
statement.close();
+ connection.close();
}
}