chia7712 commented on code in PR #16355:
URL: https://github.com/apache/kafka/pull/16355#discussion_r1642017586
##########
core/src/test/scala/integration/kafka/api/PlaintextAdminIntegrationTest.scala:
##########
@@ -1001,6 +1001,29 @@ class PlaintextAdminIntegrationTest extends
BaseAdminIntegrationTest {
assertTrue(assertThrows(classOf[ExecutionException], () =>
describeResult2.values.get(invalidTopic).get).getCause.isInstanceOf[InvalidTopicException])
}
+ @ParameterizedTest
+ @ValueSource(strings = Array("zk", "kraft"))
+ def testIncludeDocumentation(quorum: String): Unit = {
+ createTopic(topic)
+ client = createAdminClient
+
+ val resources = Collections.singletonList(new
ConfigResource(ConfigResource.Type.TOPIC, topic))
+ val includeDescribe = new
DescribeConfigsOptions().includeDocumentation(true)
+ var describeConfigs = client.describeConfigs(resources, includeDescribe)
+ val pattern = """documentation=([^,]*?)\)""".r
+ var resourceToConfig = describeConfigs.all().get()
+ var matches = pattern.findAllMatchIn(resourceToConfig.toString)
Review Comment:
Could you please verify `ConfigEntry#documentation` too?
--
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]