We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e86c670 commit 6942641Copy full SHA for 6942641
spec/functional/topic_management_spec.rb
@@ -32,4 +32,14 @@
32
kafka.create_partitions_for(topic, num_partitions: 10)
33
expect(kafka.partitions_for(topic)).to eq 10
34
end
35
+
36
+ example "describe a topic" do
37
+ unless kafka.supports_api?(Kafka::Protocol::DESCRIBE_CONFIGS_API)
38
+ skip("This Kafka version not support ")
39
+ end
40
+ configs = kafka.describe_topic(topic, %w(retention.ms retention.bytes non_exists))
41
+ expect(configs.keys).to eql(%w(retention.ms retention.bytes))
42
+ expect(configs['retention.ms']).to be_a(String)
43
+ expect(configs['retention.bytes']).to be_a(String)
44
45
0 commit comments