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

Add CreateTopic method to MockCluster #1047

Closed
wants to merge 3 commits into from

Conversation

mimikwang
Copy link
Contributor

This commit adds the CreateTopic method to MockCluster. This allows the creation of topics without having to use a Producer.

This commit adds the `CreateTopic` method to `MockCluster`. This allows
the creation of topics without having to use a `Producer`.
@cla-assistant
Copy link

cla-assistant bot commented Aug 22, 2023

CLA assistant check
All committers have signed the CLA.

@@ -92,6 +92,18 @@ func (mc *MockCluster) SetRoundtripDuration(brokerID int, duration time.Duration
return nil
}

// CreateTopic creates a topic without having to use a producer
func (mc *MockCluster) CreateTopic(topic string, partitons, replicationFactor int) error {
Copy link
Contributor

Choose a reason for hiding this comment

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

Typo: partitons

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed - thank you!

@milindl
Copy link
Contributor

milindl commented Oct 6, 2023

Thanks for this PR. Created internal branch and PR #1072 to run CI pipelines on this.

@milindl
Copy link
Contributor

milindl commented Oct 9, 2023

Merged with #1072, added CHANGELOG and made sure it passes CI.
Thanks for this PR @mimikwang

@milindl milindl closed this Oct 9, 2023
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.

3 participants