Add support for org.testcontainers.kafka.KafkaContainer

Testcontainers 1.19.8 provides `org.testcontainers.kafka.KafkaContainer`,
which relies on `apache/kafka` image.

See gh-40695
This commit is contained in:
Eddú Meléndez
2024-05-11 22:02:04 +02:00
committed by Andy Wilkinson
parent 2ce36f9141
commit 769f3e9d14
4 changed files with 164 additions and 0 deletions

View File

@@ -64,6 +64,11 @@ public enum TestImage {
*/
ACTIVE_MQ_CLASSIC("apache/activemq-classic", "5.18.3", () -> ActiveMQContainer.class),
/**
* A container image suitable for testing Apache Kafka.
*/
APACHE_KAFKA("apache/kafka", "3.7.0", () -> org.testcontainers.kafka.KafkaContainer.class),
/**
* A container image suitable for testing Artemis.
*/