Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update of unit tests to use KRaft - part 5 #10431

Merged
merged 2 commits into from
Aug 9, 2024

Conversation

scholzj
Copy link
Member

@scholzj scholzj commented Aug 8, 2024

Type of change

  • Task

Description

This is the fifth PR with unit test updates to use KRaft. This time, it does the following changes:

  • KafkaListenerReconcilerClusterIPTest and KafkaListenerReconcilerSkipBootstrapLoadBalancerTest we updated to use KRaft since they are independent on ZooKeeper. I also merged both classes into a single one named KafkaListenerReconcilerTest as these tests use the same level of mocking etc.
  • KafkaClusterCreatorTest already contained a mix of ZooKeeper and KRaft-based tests. I kept the KRaft-based tests in KafkaClusterCreatorTest with minor improvements only. The ZooKeeper-based tests were moved to a separate class KafkaClusterCreatorZooBasedTest to provide better separation and make it easier to just delete it in the future.

Checklist

  • Write tests
  • Make sure all tests pass

Signed-off-by: Jakub Scholz <www@scholzj.com>
@scholzj scholzj added this to the 0.43.0 milestone Aug 8, 2024
@scholzj scholzj requested a review from ppatierno August 8, 2024 14:43
Signed-off-by: Jakub Scholz <www@scholzj.com>
Copy link
Member

@ppatierno ppatierno left a comment

Choose a reason for hiding this comment

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

LGTM

@scholzj scholzj merged commit 25bd6a3 into strimzi:main Aug 9, 2024
13 checks passed
@scholzj scholzj deleted the wave-5-of-KRaft-unit-test-updates branch August 9, 2024 09:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants