Skip to content

Commit e013a65

Browse files
authored
Add test for Confluent platform version 7 to KafkaContainerTest (#5989)
1 parent cbfe089 commit e013a65

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

modules/kafka/src/test/java/org/testcontainers/containers/KafkaContainerTest.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,14 @@ public void testExternalZookeeperWithExternalNetwork() throws Exception {
9696
}
9797
}
9898

99+
@Test
100+
public void testConfluentPlatformVersion7() throws Exception {
101+
try (KafkaContainer kafka = new KafkaContainer(DockerImageName.parse("confluentinc/cp-kafka:7.2.2"))) {
102+
kafka.start();
103+
testKafkaFunctionality(kafka.getBootstrapServers());
104+
}
105+
}
106+
99107
@Test
100108
public void testConfluentPlatformVersion5() throws Exception {
101109
try (KafkaContainer kafka = new KafkaContainer(DockerImageName.parse("confluentinc/cp-kafka:5.4.3"))) {

0 commit comments

Comments
 (0)