[KYUUBI #1211] Reopen test udf in JDBCTests
<!-- Thanks for sending a pull request! Here are some tips for you: 1. If this is your first time, please read our contributor guidelines: https://kyuubi.readthedocs.io/en/latest/community/contributions.html 2. If the PR is related to an issue in https://github.com/apache/incubator-kyuubi/issues, add '[KYUUBI #XXXX]' in your PR title, e.g., '[KYUUBI #XXXX] Your PR title ...'. 3. If the PR is unfinished, add '[WIP]' in your PR title, e.g., '[WIP][KYUUBI #XXXX] Your PR title ...'. --> ### _Why are the changes needed?_ <!-- Please clarify why the changes are needed. For instance, 1. If you add a feature, you can talk about the use case of it. 2. If you fix a bug, you can clarify why it is a bug. --> Improve test coverage. ### _How was this patch tested?_ - [x] Add some test cases that check the changes thoroughly including negative and positive cases if possible - [ ] Add screenshots for manual tests if appropriate - [ ] [Run test](https://kyuubi.readthedocs.io/en/latest/develop_tools/testing.html#running-tests) locally before make a pull request Closes #1211 from ulysses-you/minikube. Closes #1211 f02edeca [ulysses-you] test Authored-by: ulysses-you <ulyssesyou18@gmail.com> Signed-off-by: Cheng Pan <chengpan@apache.org>
This commit is contained in:
parent
95c74cdefc
commit
5230d09e1c
@ -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"))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user