pan3793 commented on code in PR #5705:
URL: https://github.com/apache/kyuubi/pull/5705#discussion_r1400673165


##########
kyuubi-server/src/test/scala/org/apache/kyuubi/server/api/v1/BatchesResourceSuite.scala:
##########
@@ -852,4 +855,39 @@ abstract class BatchesResourceSuiteBase extends 
KyuubiFunSuite
     val getBatchListResponse = response.readEntity(classOf[GetBatchesResponse])
     assert(getBatchListResponse.getTotal == 1)
   }
+
+  test("open batch session with proxyUser") {
+    val normalUser = "kyuubi"
+
+    def runOpenBatchExecutor(kyuubiProxyUser: Option[String],
+                             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))

Review Comment:
   ```suggestion
         kyuubiProxyUser.map { username => 
           conf += (PROXY_USER.key -> username)
         }
         hs2ProxyUser.map { username =>
           conf += (KyuubiAuthenticationFactory.HS2_PROXY_USER -> username)
         }
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to