KAFKA-15462: Add Group Type Filter for List Group to the Admin Client
In KIP-848, we introduce the notion of Group Types based on the protocol type that the members in the consumer group use. As of now we support two types of groups:
- Classic : Members use the classic consumer group protocol ( existing one )
- Consumer : Members use the consumer group protocol introduced in KIP-848.
Currently List Groups allows users to list all the consumer groups available. KIP-518 introduced filtering the consumer groups by the state that they are in. We now want to allow users to filter consumer groups by type.
This PR includes the changes to the admin client and related files. It also includes changes to parameterize the tests to include permutations of the old GC and the new GC with the different protocol types.
Ran all the tests locally with changes from this patch https://github.com/apache/kafka/pull/15311 and everything passes. Tests in ListConsumerGroupTest that use the new "consumer" protocol will be flaky and mostly fail without this fix.
@rreddy-22 There are conflicts due to changes made in https://github.com/apache/kafka/commit/88c5543ccfb517ceba8dc56d22576efdf2540e0e. Could you take a look when you get a chance?