aglicacha commented on code in PR #12729:
URL: https://github.com/apache/kafka/pull/12729#discussion_r1022873755


##########
core/src/test/scala/unit/kafka/zk/AdminZkClientTest.scala:
##########
@@ -355,4 +358,69 @@ class AdminZkClientTest extends QuorumTestHarness with 
Logging with RackAwareTes
     val assignment = zkClient.getReplicaAssignmentForTopics(Set("foo"))
     assertEquals(numPartitions, assignment.size)
   }
+
+  @Test
+  def testChangeUserOrUserClientIdConfigWithUserAndClientId(): Unit = {
+    val config = new Properties()
+    config.put(QuotaConfigs.PRODUCER_BYTE_RATE_OVERRIDE_CONFIG, 
producerByteRate)
+    adminZkClient.changeUserOrUserClientIdConfig("user01/clients/client01", 
config, isUserClientId = true)
+    var props = zkClient.getEntityConfigs(ConfigType.User, 
"user01/clients/client01")
+    
assertEquals(props.getProperty(QuotaConfigs.PRODUCER_BYTE_RATE_OVERRIDE_CONFIG),
 producerByteRate)

Review Comment:
   Done.



-- 
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]

Reply via email to