File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -70,11 +70,10 @@ def with_retry(opts = {}, &block)
7070
7171 topic = generate_topic_name
7272 kafka . create_topic ( topic , num_partitions : 3 )
73- configs = kafka . describe_topic ( topic , %w( retention.ms retention.bytes non_exists ) )
73+ configs = kafka . describe_topic ( topic , %w( retention.ms ) )
7474
75- expect ( configs . keys ) . to eql ( %w( retention.ms retention.bytes ) )
75+ expect ( configs . keys ) . to eql ( %w( retention.ms ) )
7676 expect ( configs [ 'retention.ms' ] ) . to be_a ( String )
77- expect ( configs [ 'retention.bytes' ] ) . to be_a ( String )
7877 end
7978
8079 example "alter a topic configuration" do
@@ -90,8 +89,9 @@ def with_retry(opts = {}, &block)
9089 'max.message.bytes' => '987654'
9190 )
9291
93- configs = kafka . describe_topic ( topic , %w( retention.ms max.message.bytes ) )
94- expect ( configs [ 'retention.ms' ] ) . to eql ( '1234567' )
95- expect ( configs [ 'max.message.bytes' ] ) . to eql ( '987654' )
92+ retention_configs = kafka . describe_topic ( topic , %w( retention.ms ) )
93+ expect ( retention_configs [ 'retention.ms' ] ) . to eql ( '1234567' )
94+ max_msg_bytes_configs = kafka . describe_topic ( topic , %w( max.message.bytes ) )
95+ expect ( max_msg_bytes_configs [ 'max.message.bytes' ] ) . to eql ( '987654' )
9696 end
9797end
You can’t perform that action at this time.
0 commit comments