@@ -1810,7 +1810,7 @@ class PlaintextAdminIntegrationTest extends BaseAdminIntegrationTest {
1810
1810
* Test the consumer group APIs.
1811
1811
*/
1812
1812
@ ParameterizedTest (name = TestInfoUtils .TestWithParameterizedQuorumAndGroupProtocolNames )
1813
- @ MethodSource (Array (" getTestQuorumAndGroupProtocolParametersClassicGroupProtocolOnly_KAFKA_17960 " ))
1813
+ @ MethodSource (Array (" getTestQuorumAndGroupProtocolParametersAll " ))
1814
1814
def testConsumerGroups (quorum : String , groupProtocol : String ): Unit = {
1815
1815
val config = createConfig
1816
1816
client = Admin .create(config)
@@ -1938,8 +1938,13 @@ class PlaintextAdminIntegrationTest extends BaseAdminIntegrationTest {
1938
1938
// Test that we can get information about the test consumer group.
1939
1939
assertTrue(describeWithFakeGroupResult.describedGroups().containsKey(testGroupId))
1940
1940
var testGroupDescription = describeWithFakeGroupResult.describedGroups().get(testGroupId).get()
1941
- assertEquals(groupType == GroupType .CLASSIC , testGroupDescription.groupEpoch.isEmpty)
1942
- assertEquals(groupType == GroupType .CLASSIC , testGroupDescription.targetAssignmentEpoch.isEmpty)
1941
+ if (groupType == GroupType .CLASSIC ) {
1942
+ assertTrue(testGroupDescription.groupEpoch.isEmpty)
1943
+ assertTrue(testGroupDescription.targetAssignmentEpoch.isEmpty)
1944
+ } else {
1945
+ assertEquals(Optional .of(3 ), testGroupDescription.groupEpoch)
1946
+ assertEquals(Optional .of(3 ), testGroupDescription.targetAssignmentEpoch)
1947
+ }
1943
1948
1944
1949
assertEquals(testGroupId, testGroupDescription.groupId())
1945
1950
assertFalse(testGroupDescription.isSimpleConsumerGroup)
@@ -2167,7 +2172,7 @@ class PlaintextAdminIntegrationTest extends BaseAdminIntegrationTest {
2167
2172
* Test the consumer group APIs.
2168
2173
*/
2169
2174
@ ParameterizedTest (name = TestInfoUtils .TestWithParameterizedQuorumAndGroupProtocolNames )
2170
- @ MethodSource (Array (" getTestQuorumAndGroupProtocolParametersClassicGroupProtocolOnly_KAFKA_17960 " ))
2175
+ @ MethodSource (Array (" getTestQuorumAndGroupProtocolParametersAll " ))
2171
2176
def testConsumerGroupsDeprecatedConsumerGroupState (quorum : String , groupProtocol : String ): Unit = {
2172
2177
val config = createConfig
2173
2178
client = Admin .create(config)
0 commit comments