@@ -53,20 +53,20 @@ public void testDescribeWithKRaft(ClusterInstance cluster) {
5353 List <String > features = Arrays .stream (commandOutput .split ("\n " )).sorted ().toList ();
5454
5555 // Change expected message to reflect latest MetadataVersion (SupportedMaxVersion increases when adding a new version)
56- assertEquals ("Feature: eligible.leader.replicas.version\t SupportedMinVersion: 0\t " +
57- "SupportedMaxVersion: 1\t FinalizedVersionLevel: 0\t " , outputWithoutEpoch (features .get (0 )));
58- assertEquals ("Feature: group.version\t SupportedMinVersion: 0\t " +
59- "SupportedMaxVersion: 1\t FinalizedVersionLevel: 0\t " , outputWithoutEpoch (features .get (1 )));
60- assertEquals ("Feature: kraft.version\t SupportedMinVersion: 0\t " +
61- "SupportedMaxVersion: 1\t FinalizedVersionLevel: 0\t " , outputWithoutEpoch (features .get (2 )));
62- assertEquals ("Feature: metadata.version\t SupportedMinVersion: 3.3-IV3\t " +
63- "SupportedMaxVersion: 4.3-IV0\t FinalizedVersionLevel: 3.3-IV3\t " , outputWithoutEpoch (features .get (3 )));
64- assertEquals ("Feature: share.version\t SupportedMinVersion: 0\t " +
65- "SupportedMaxVersion: 1\t FinalizedVersionLevel: 0\t " , outputWithoutEpoch (features .get (4 )));
66- assertEquals ("Feature: streams.version\t SupportedMinVersion: 0\t " +
67- "SupportedMaxVersion: 1\t FinalizedVersionLevel: 0\t " , outputWithoutEpoch (features .get (5 )));
68- assertEquals ("Feature: transaction.version\t SupportedMinVersion: 0\t " +
69- "SupportedMaxVersion: 2\t FinalizedVersionLevel: 0\t " , outputWithoutEpoch (features .get (6 )));
56+ assertEquals ("Feature: eligible.leader.replicas.version\t \ t SupportedMinVersion: 0\t \t " +
57+ "SupportedMaxVersion: 1\t \ t FinalizedVersionLevel: 0\t \t " , outputWithoutEpoch (features .get (0 )));
58+ assertEquals ("Feature: group.version\t \ t SupportedMinVersion: 0\t \t " +
59+ "SupportedMaxVersion: 1\t \ t FinalizedVersionLevel: 0\t \t " , outputWithoutEpoch (features .get (1 )));
60+ assertEquals ("Feature: kraft.version\t \ t SupportedMinVersion: 0\t \t " +
61+ "SupportedMaxVersion: 1\t \ t FinalizedVersionLevel: 0\t \t " , outputWithoutEpoch (features .get (2 )));
62+ assertEquals ("Feature: metadata.version\t \ t SupportedMinVersion: 3.3-IV3\t \t " +
63+ "SupportedMaxVersion: 4.3-IV0\t \ t FinalizedVersionLevel: 3.3-IV3\t \t " , outputWithoutEpoch (features .get (3 )));
64+ assertEquals ("Feature: share.version\t \ t SupportedMinVersion: 0\t \t " +
65+ "SupportedMaxVersion: 1\t \ t FinalizedVersionLevel: 0\t \t " , outputWithoutEpoch (features .get (4 )));
66+ assertEquals ("Feature: streams.version\t \ t SupportedMinVersion: 0\t \t " +
67+ "SupportedMaxVersion: 1\t \ t FinalizedVersionLevel: 0\t \t " , outputWithoutEpoch (features .get (5 )));
68+ assertEquals ("Feature: transaction.version\t \ t SupportedMinVersion: 0\t \t " +
69+ "SupportedMaxVersion: 2\t \ t FinalizedVersionLevel: 0\t \t " , outputWithoutEpoch (features .get (6 )));
7070 }
7171
7272 // Use the first MetadataVersion that supports KIP-919
@@ -79,20 +79,20 @@ public void testDescribeWithKRaftAndBootstrapControllers(ClusterInstance cluster
7979 List <String > features = Arrays .stream (commandOutput .split ("\n " )).sorted ().toList ();
8080
8181 // Change expected message to reflect latest MetadataVersion (SupportedMaxVersion increases when adding a new version)
82- assertEquals ("Feature: eligible.leader.replicas.version\t SupportedMinVersion: 0\t " +
83- "SupportedMaxVersion: 1\t FinalizedVersionLevel: 0\t " , outputWithoutEpoch (features .get (0 )));
84- assertEquals ("Feature: group.version\t SupportedMinVersion: 0\t " +
85- "SupportedMaxVersion: 1\t FinalizedVersionLevel: 0\t " , outputWithoutEpoch (features .get (1 )));
86- assertEquals ("Feature: kraft.version\t SupportedMinVersion: 0\t " +
87- "SupportedMaxVersion: 1\t FinalizedVersionLevel: 0\t " , outputWithoutEpoch (features .get (2 )));
88- assertEquals ("Feature: metadata.version\t SupportedMinVersion: 3.3-IV3\t " +
89- "SupportedMaxVersion: 4.3-IV0\t FinalizedVersionLevel: 3.7-IV0\t " , outputWithoutEpoch (features .get (3 )));
90- assertEquals ("Feature: share.version\t SupportedMinVersion: 0\t " +
91- "SupportedMaxVersion: 1\t FinalizedVersionLevel: 0\t " , outputWithoutEpoch (features .get (4 )));
92- assertEquals ("Feature: streams.version\t SupportedMinVersion: 0\t " +
93- "SupportedMaxVersion: 1\t FinalizedVersionLevel: 0\t " , outputWithoutEpoch (features .get (5 )));
94- assertEquals ("Feature: transaction.version\t SupportedMinVersion: 0\t " +
95- "SupportedMaxVersion: 2\t FinalizedVersionLevel: 0\t " , outputWithoutEpoch (features .get (6 )));
82+ assertEquals ("Feature: eligible.leader.replicas.version\t \ t SupportedMinVersion: 0\t \t " +
83+ "SupportedMaxVersion: 1\t \ t FinalizedVersionLevel: 0\t \t " , outputWithoutEpoch (features .get (0 )));
84+ assertEquals ("Feature: group.version\t \ t SupportedMinVersion: 0\t \t " +
85+ "SupportedMaxVersion: 1\t \ t FinalizedVersionLevel: 0\t \t " , outputWithoutEpoch (features .get (1 )));
86+ assertEquals ("Feature: kraft.version\t \ t SupportedMinVersion: 0\t \t " +
87+ "SupportedMaxVersion: 1\t \ t FinalizedVersionLevel: 0\t \t " , outputWithoutEpoch (features .get (2 )));
88+ assertEquals ("Feature: metadata.version\t \ t SupportedMinVersion: 3.3-IV3\t \t " +
89+ "SupportedMaxVersion: 4.3-IV0\t \ t FinalizedVersionLevel: 3.7-IV0\t \t " , outputWithoutEpoch (features .get (3 )));
90+ assertEquals ("Feature: share.version\t \ t SupportedMinVersion: 0\t \t " +
91+ "SupportedMaxVersion: 1\t \ t FinalizedVersionLevel: 0\t \t " , outputWithoutEpoch (features .get (4 )));
92+ assertEquals ("Feature: streams.version\t \ t SupportedMinVersion: 0\t \t " +
93+ "SupportedMaxVersion: 1\t \ t FinalizedVersionLevel: 0\t \t " , outputWithoutEpoch (features .get (5 )));
94+ assertEquals ("Feature: transaction.version\t \ t SupportedMinVersion: 0\t \t " +
95+ "SupportedMaxVersion: 2\t \ t FinalizedVersionLevel: 0\t \t " , outputWithoutEpoch (features .get (6 )));
9696 }
9797
9898 @ ClusterTest (types = {Type .KRAFT }, metadataVersion = MetadataVersion .IBP_3_3_IV3 )
@@ -257,8 +257,8 @@ public void testHandleDescribe() {
257257 throw new RuntimeException (e );
258258 }
259259 });
260- assertEquals (format ("Feature: foo.bar\t SupportedMinVersion: 0\t SupportedMaxVersion: 10\t FinalizedVersionLevel: 5\t Epoch: 123%n" +
261- "Feature: metadata.version\t SupportedMinVersion: 3.3-IV3\t SupportedMaxVersion: 3.5-IV0\t FinalizedVersionLevel: 3.4-IV0\t Epoch: 123" ), describeResult );
260+ assertEquals (format ("Feature: foo.bar\t \ t SupportedMinVersion: 0\t \ t SupportedMaxVersion: 10\t \ t FinalizedVersionLevel: 5\t \t Epoch: 123%n" +
261+ "Feature: metadata.version\t \ t SupportedMinVersion: 3.3-IV3\t \ t SupportedMaxVersion: 3.5-IV0\t \ t FinalizedVersionLevel: 3.4-IV0\t \t Epoch: 123" ), describeResult );
262262 }
263263
264264 @ Test
0 commit comments