10BC0 adding kafka test container support by ash1425 · Pull Request #127 · testcontainers/testcontainers-python · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@ash1425
Copy link
Contributor
@ash1425 ash1425 commented Jan 5, 2021

fix #121 This PR adds support for kafka container. Heavily inspired from java testcontainer's Kafka module.

@ash1425 ash1425 changed the title adding kafka test container support #121 adding kafka test container support Jan 5, 2021
@ash1425
Copy link
Contributor Author
ash1425 commented Jan 7, 2021

I tried these failing tests locally, They work in all python versions (used venv) but were flaky and I had to try multiple time.
mssql test didnt work locally too.

@SrinivasanTarget
Copy link

@tillahoffmann Can you please review this change?

Copy link
Contributor
@tillahoffmann tillahoffmann left a comment

Choose a reason for hiding this comment

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

Thank you for the addition! Some comments inline.

@ash1425
Copy link
Contributor Author
ash1425 commented Jan 16, 2021

@tillahoffmann Thanks for the review comments. I have accommodated those in latest commit.

@ash1425
Copy link
Contributor Author
ash1425 commented Jan 27, 2021

assert consumer.end_offsets([tp])[tp] == 1, "Expected exactly one test message to be present on test topic !"

This is going to ensure that we will have one and only one message in the consumer in integration test.

@mamachanko
Copy link

assert consumer.end_offsets([tp])[tp] == 1, "Expected exactly one test message to be present on test topic !"

This is going to ensure that we will have one and only one message in the consumer in integration test.

I understand. Then it looks like the for loop and the assertion within don't add confidence to the test. Would you consider to scrap them?

@t0t07
Copy link
t0t07 commented Mar 22, 2021

@ash1425 Hey Ashay, do you have bandwidth working on the PR? If not, maybe I can help to cross the finish line?

@ash1425
Copy link
Contributor Author
ash1425 commented Mar 24, 2021

@YikSanChan
Thanks for offering to help. I have invited you as collaborator to my fork.

For now, I have incorporated all the review comments and merged upstream changes to resolve the conflicts. I think we should be good to approve and merge if all tests pass.

@t0t07
Copy link
t0t07 commented Mar 24, 2021

@ash1425 Great thanks! If there is any more comment from testcontainers members, I can try to resolve

@t0t07
Copy link
t0t07 commented Mar 24, 2021

@tillahoffmann Could you please taking a look? This is the feature I am looking for. Thank you!

@SrinivasanTarget
Copy link

@tillahoffmann CI seems happy. Are we good to get these changes in?

@tillahoffmann tillahoffmann merged commit bc969c5 into testcontainers:master Mar 29, 2021
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.

How to create a Kafka test Container

5 participants

0