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

chore: rid of deprecated class #209

Merged
merged 1 commit into from
Feb 16, 2022

Conversation

andreezy777
Copy link

@andreezy777 andreezy777 commented Feb 13, 2022

Hi, here is my proposal to change deprecated JavaKafkaContainer class with String argument to newer class with DockerImageName argument. (like in ElasticSearch module)

@andreezy777 andreezy777 changed the title chore: rid of deprecated method chore: rid of deprecated class Feb 13, 2022

class KafkaContainer(confluentPlatformVersion: Option[String] = None,
externalZookeeper: Option[String] = None) extends SingleContainer[JavaKafkaContainer] {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Has this argument been removed on purpose? It doesn't seem to be deprecated in the Java lib

Copy link
Author

Choose a reason for hiding this comment

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

Are you about externalZookeeper?

If yes. Then by default externalZookeeperConnect = null in Java lib, so then we do not need pass any value, cause by default we will use embeddedZookeeper (because method withEmbeddedZookeeper returns externalZookeeperConnect = null).
And if anyone wants to use externalZookeeper they should use configure method (as written above the val kafkaContainer )

Copy link
Collaborator

Choose a reason for hiding this comment

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

Sorry for vague question, and yes, I was asking about externalZookeeperConnect.

Thank you, it makes sense!

@dimafeng
Copy link
Collaborator

@andreezy777 Thank you! Added a quick comment

@andreezy777
Copy link
Author

@dimafeng Thanks for quick response, add a comment for your question.

@dimafeng dimafeng merged commit 531d358 into testcontainers:master Feb 16, 2022
@andreezy777
Copy link
Author

andreezy777 commented Feb 16, 2022

@dimafeng сan you tell, please, when you will make an update with this commit?
Saw, that you updated to 0.40.2, thx

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.

None yet

2 participants