-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor: move logic out of client for easier unit testing (#19183)
* Move get_consumer_group_state out of client * Set up mock client in helper function * Hide consumer behind client methods * Turn confluent kafka objects into python ones (for easier mocking) * Same for consumer_offsets_for_times * Move get_high_water_offsets out of client * separate out client-related logic to list consumer groups * Separate client-related logic for listing consumer group offsets * Focus get_partitions_for_topic on interactions with kafka * Move get_consumer_offsets out of kafka client
- Loading branch information
Showing
3 changed files
with
308 additions
and
315 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.