Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[KIP-848] Tests for changes in DescribeConsumerGroups#1984

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
PratRanj07 wants to merge5 commits intomaster
base:master
Choose a base branch
Loading
fromdev_test_describeGroup

Conversation

@PratRanj07
Copy link
Contributor

Modified test for changes in DescribeConsumerGroups api

CopilotAI review requested due to automatic review settingsMay 26, 2025 09:47
@PratRanj07PratRanj07 requested review froma team ascode ownersMay 26, 2025 09:47
@confluent-cla-assistant

🎉 All Contributor License Agreements have been signed. Ready to merge.
Please push an empty commit if you would like to re-run the checks to verify CLA status for all contributors.

Copy link

CopilotAI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Pull Request Overview

Tests for theDescribeConsumerGroups API have been updated to handle and verify the newConsumerGroupType field for both classic and consumer protocols, and obsolete skip logic has been removed.

  • AddedConsumerGroupType import and updatedconsume_messages to accept agroup_protocol parameter.
  • Expandedverify_describe_groups to assertdesc.type for both classic and consumer group protocols.
  • Removed the conditional skip for consumer protocol tests.

'on_commit':verify_commit_result,
'auto.offset.reset':'earliest'}

ifgroup_protocol=='classic' :

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Remove the extra space before the colon in the if statement to follow style guidelines (e.g., PEP8).

Suggested change
ifgroup_protocol=='classic':
ifgroup_protocol=='classic':

Copilot uses AI. Check for mistakes.
# Delete group
perform_admin_operation_sync(admin_client.delete_consumer_groups, [group],request_timeout=10)

consumer_group='test-group-consumer'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

[nitpick] The test logic for classic and consumer group protocols is nearly identical; consider refactoring into a parameterized helper or loop to reduce duplication.

Copilot uses AI. Check for mistakes.
# Delete group
perform_admin_operation_sync(admin_client.delete_consumer_groups, [group],request_timeout=10)

consumer_group='test-group-consumer'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

There are trailing spaces at the end of this line; consider removing them to clean up formatting.

Suggested change
consumer_group='test-group-consumer'
consumer_group='test-group-consumer'

Copilot uses AI. Check for mistakes.
@sonarqube-confluent
Copy link

Passed

Analysis Details

0 Issues

  • Bug 0 Bugs
  • Vulnerability 0 Vulnerabilities
  • Code Smell 0 Code Smells

Coverage and Duplications

  • Coverage No coverage information (66.00% Estimated after merge)
  • Duplications No duplication information (5.20% Estimated after merge)

Project ID: confluent-kafka-python

View in SonarQube

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

Copilot code reviewCopilotCopilot left review comments

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@PratRanj07

[8]ページ先頭

©2009-2025 Movatter.jp