testcontainers / testcontainers-java

Testcontainers is a Java library that supports JUnit tests, providing lightweight, throwaway instances of common databases, Selenium web browsers, or anything else that can run in a Docker container.
https://testcontainers.org
MIT License
7.9k stars 1.62k forks source link

Avoid duplicate values for listeners and listener_security_protocol_map in KafkaContainer #8850

Closed eddumelendez closed 2 weeks ago

eddumelendez commented 2 weeks ago

Currently, when KafkaContainer is started more than one time then KAFKA_LISTENERS and KAFKA_LISTENER_SECURITY_PROTOCOL_MAP registers an additional entry, which is duplicated.

Fixes #8619