Browse Source

MINOR: Improve assert in testCreateTopicsResponseMetadataAndConfig (#7484)

It's much easier to debug when one can see the config names than one
can only see a number.

Reviewers: Rajini Sivaram <rajinisivaram@googlemail.com>
pull/7497/head
Ismael Juma 5 years ago committed by GitHub
parent
commit
ac937706be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      core/src/test/scala/integration/kafka/api/SaslSslAdminClientIntegrationTest.scala

2
core/src/test/scala/integration/kafka/api/SaslSslAdminClientIntegrationTest.scala

@ -450,7 +450,7 @@ class SaslSslAdminClientIntegrationTest extends AdminClientIntegrationTest with @@ -450,7 +450,7 @@ class SaslSslAdminClientIntegrationTest extends AdminClientIntegrationTest with
val topicResource = new ConfigResource(ConfigResource.Type.TOPIC, topic1)
val describeResponseConfig = client.describeConfigs(List(topicResource).asJava).values.get(topicResource).get().entries.asScala
assertEquals(describeResponseConfig.size, createResponseConfig.size)
assertEquals(describeResponseConfig.map(_.name).toSet, createResponseConfig.map(_.name).toSet)
describeResponseConfig.foreach { describeEntry =>
val name = describeEntry.name
val createEntry = createResponseConfig.find(_.name == name).get

Loading…
Cancel
Save