File tree 1 file changed +6
-6
lines changed
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)
70
70
71
71
topic = generate_topic_name
72
72
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 ) )
74
74
75
- expect ( configs . keys ) . to eql ( %w( retention.ms retention.bytes ) )
75
+ expect ( configs . keys ) . to eql ( %w( retention.ms ) )
76
76
expect ( configs [ 'retention.ms' ] ) . to be_a ( String )
77
- expect ( configs [ 'retention.bytes' ] ) . to be_a ( String )
78
77
end
79
78
80
79
example "alter a topic configuration" do
@@ -90,8 +89,9 @@ def with_retry(opts = {}, &block)
90
89
'max.message.bytes' => '987654'
91
90
)
92
91
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' )
96
96
end
97
97
end
You can’t perform that action at this time.
0 commit comments