Skip to content

Commit

Permalink
Update kyuubi-server/src/test/scala/org/apache/kyuubi/server/api/v1/B…
Browse files Browse the repository at this point in the history
…atchesResourceSuite.scala
  • Loading branch information
pan3793 authored Nov 21, 2023
1 parent 1a693c8 commit 71770a6
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -863,9 +863,12 @@ abstract class BatchesResourceSuiteBase extends KyuubiFunSuite
hs2ProxyUser: Option[String]): Response = {
val conf = mutable.Map("spark.master" -> "local")

kyuubiProxyUser.map(username => conf += (PROXY_USER.key -> username))
hs2ProxyUser.map(username =>
conf += (KyuubiAuthenticationFactory.HS2_PROXY_USER -> username))
kyuubiProxyUser.map { username =>
conf += (PROXY_USER.key -> username)
}
hs2ProxyUser.map { username =>
conf += (KyuubiAuthenticationFactory.HS2_PROXY_USER -> username)
}
val proxyUserRequest = newSparkBatchRequest(conf.toMap)

webTarget.path("api/v1/batches")
Expand Down

0 comments on commit 71770a6

Please sign in to comment.