From 71770a6e792a60a3fcebccbcb222f028294672e9 Mon Sep 17 00:00:00 2001 From: Cheng Pan Date: Tue, 21 Nov 2023 22:19:15 +0800 Subject: [PATCH] Update kyuubi-server/src/test/scala/org/apache/kyuubi/server/api/v1/BatchesResourceSuite.scala --- .../kyuubi/server/api/v1/BatchesResourceSuite.scala | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/kyuubi-server/src/test/scala/org/apache/kyuubi/server/api/v1/BatchesResourceSuite.scala b/kyuubi-server/src/test/scala/org/apache/kyuubi/server/api/v1/BatchesResourceSuite.scala index d032ebbcbdc..da5554b9251 100644 --- a/kyuubi-server/src/test/scala/org/apache/kyuubi/server/api/v1/BatchesResourceSuite.scala +++ b/kyuubi-server/src/test/scala/org/apache/kyuubi/server/api/v1/BatchesResourceSuite.scala @@ -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")