-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #45607 from ozangunalp/bump_strimzi_test_container
Bump strimzi-test-container version from 0.107.0 to 0.109.1
- Loading branch information
Showing
12 changed files
with
88 additions
and
821 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
164 changes: 0 additions & 164 deletions
164
integration-tests/kafka-oauth-keycloak/src/test/resources/kafkaServer.properties
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
package io.quarkus.it.kafka; | ||
|
||
import static io.strimzi.test.container.StrimziKafkaContainer.KAFKA_PORT; | ||
import static java.util.Map.entry; | ||
|
||
import java.util.HashMap; | ||
import java.util.Map; | ||
|
@@ -34,10 +35,23 @@ public Map<String, String> start() { | |
|
||
//Start kafka container | ||
kafka = new StrimziKafkaContainer() | ||
.withBrokerId(0) | ||
.withBootstrapServers( | ||
c -> String.format("SASL_PLAINTEXT://%s:%s", c.getHost(), c.getMappedPort(KAFKA_PORT))) | ||
.withKafkaConfigurationMap(Map.ofEntries( | ||
entry("listener.security.protocol.map", "SASL_PLAINTEXT:SASL_PLAINTEXT,BROKER1:PLAINTEXT"), | ||
entry("inter.broker.listener.name", "SASL_PLAINTEXT"), | ||
entry("sasl.enabled.mechanisms", "GSSAPI"), | ||
entry("sasl.mechanism.inter.broker.protocol", "GSSAPI"), | ||
entry("listener.name.sasl_plaintext.gssapi.sasl.jaas.config", | ||
"com.sun.security.auth.module.Krb5LoginModule required " + | ||
"useKeyTab=true storeKey=true debug=true serviceName=\"kafka\" " + | ||
"keyTab=\"/opt/kafka/config/kafkabroker.keytab\" " + | ||
"principal=\"kafka/[email protected]\";"), | ||
entry("sasl.kerberos.service.name", "kafka"), | ||
entry("ssl.endpoint.identification.algorithm", "https"), | ||
entry("ssl.client.auth", "none"))) | ||
.withPort(KAFKA_PORT) | ||
.withServerProperties(MountableFile.forClasspathResource("kafkaServer.properties")) | ||
.withCopyFileToContainer(MountableFile.forClasspathResource("krb5KafkaBroker.conf"), | ||
"/etc/krb5.conf") | ||
.withCopyFileToContainer(MountableFile.forHostPath("target/kafkabroker.keytab"), | ||
|
Oops, something went wrong.