You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2019/01/11 18:24:36 UTC

[GitHub] vanzin commented on a change in pull request #23511: [SPARK-26592][SS] Throw exception when kafka delegation token tried to obtain with proxy user

vanzin commented on a change in pull request #23511: [SPARK-26592][SS] Throw exception when kafka delegation token tried to obtain with proxy user
URL: https://github.com/apache/spark/pull/23511#discussion_r247210819
 
 

 ##########
 File path: core/src/test/scala/org/apache/spark/deploy/security/KafkaTokenUtilSuite.scala
 ##########
 @@ -78,6 +79,21 @@ class KafkaTokenUtilSuite extends SparkFunSuite with BeforeAndAfterEach {
     Configuration.setConfiguration(null)
   }
 
+  test("checkProxyUser with proxy current user should throw exception") {
+    val currentUser = UserGroupInformation.getCurrentUser()
 
 Review comment:
   Use `UGI.createUserForTesting` instead of messing with the current user. (Or even `createProxyUser` might just work.)

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org