diff --git a/kyuubi-common/src/test/scala/org/apache/kyuubi/operation/JDBCTests.scala b/kyuubi-common/src/test/scala/org/apache/kyuubi/operation/JDBCTests.scala index 1b1a41c39..004670fe1 100644 --- a/kyuubi-common/src/test/scala/org/apache/kyuubi/operation/JDBCTests.scala +++ b/kyuubi-common/src/test/scala/org/apache/kyuubi/operation/JDBCTests.scala @@ -353,9 +353,7 @@ trait JDBCTests extends BasicJDBCTests { } } - // TODO: https://github.com/apache/incubator-kyuubi/issues/937 - // Kyuubi docker image has not updated to lastest version - ignore("kyuubi defined function - kyuubi_version") { + test("kyuubi defined function - kyuubi_version") { withJdbcStatement() { statement => val rs = statement.executeQuery("SELECT kyuubi_version()") assert(rs.next()) @@ -363,7 +361,7 @@ trait JDBCTests extends BasicJDBCTests { } } - ignore("kyuubi defined function - engine_name") { + test("kyuubi defined function - engine_name") { withJdbcStatement() { statement => val rs = statement.executeQuery("SELECT engine_name()") assert(rs.next()) @@ -371,12 +369,16 @@ trait JDBCTests extends BasicJDBCTests { } } - // dockerfile use kyuubi as user which is not same with non-k8s env. - ignore("kyuubi defined function - system_user") { + test("kyuubi defined function - system_user") { withJdbcStatement() { statement => val rs = statement.executeQuery("SELECT system_user()") assert(rs.next()) - assert(rs.getString(1) == System.getProperty("user.name")) + val user = rs.getString(1) + // skip minikube test since dockerfile use kyuubi as user which is not same with non-k8s env. + if (user == "kyuubi") { + } else { + assert(user == System.getProperty("user.name")) + } } }