File tree Expand file tree Collapse file tree 4 files changed +7
-8
lines changed
embedded-kafka/src/main/java/com/playtika/test/kafka
embedded-oracle-xe/src/main/java/com/playtika/test/oracle
testcontainers-spring-boot-parent Expand file tree Collapse file tree 4 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ public String[] getCheckCommand() {
2222 MIN_BROKERS_COUNT ,
2323 TIMEOUT_IN_SEC ,
2424 "-b" ,
25- String .format ("localhost:%d" , this . properties . getContainerBrokerPort () )
25+ String .format ("localhost:%d" , 9092 )
2626 };
2727 }
2828
Original file line number Diff line number Diff line change @@ -90,7 +90,6 @@ public String getBootstrapServers() {
9090 .withCreateContainerCmdModifier (cmd -> cmd .withUser (kafkaProperties .getDockerUser ()))
9191 .withCreateContainerCmdModifier (cmd -> cmd .withHostName (KAFKA_HOST_NAME ))
9292 .withEmbeddedZookeeper ()
93- .withEnv ("KAFKA_BROKER_ID" , "-1" )
9493 //see: https://stackoverflow.com/questions/41868161/kafka-in-kubernetes-cluster-how-to-publish-consume-messages-from-outside-of-kub
9594 //see: https://github.com/wurstmeister/kafka-docker/blob/master/README.md
9695 // order matters: external then internal since kafka.client.ClientUtils.getPlaintextBrokerEndPoints take first for simple consumers
@@ -106,7 +105,7 @@ public String getBootstrapServers() {
106105 "INTERNAL_PLAINTEXT://0.0.0.0:" + kafkaInternalPort + "," +
107106 "BROKER://0.0.0.0:9092"
108107 )
109- .withEnv ("KAFKA_INTER_BROKER_LISTENER_NAME" , "INTERNAL_PLAINTEXT " )
108+ .withEnv ("KAFKA_INTER_BROKER_LISTENER_NAME" , "BROKER " )
110109 .withEnv ("KAFKA_OFFSETS_TOPIC_NUM_PARTITIONS" , "1" )
111110 .withEnv ("KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR" , String .valueOf (kafkaProperties .getOffsetsTopicReplicationFactor ()))
112111 .withEnv ("KAFKA_TRANSACTION_STATE_LOG_MIN_ISR" , "1" )
Original file line number Diff line number Diff line change 1111public class OracleProperties extends CommonContainerProperties {
1212 static final String BEAN_NAME_EMBEDDED_ORACLE = "embeddedOracle" ;
1313 static final int ORACLE_PORT = 1521 ;
14- static final String ORACLE_DB = "xe " ;
14+ static final String ORACLE_DB = "xepdb1 " ;
1515
16- String dockerImage = "oracleinanutshell /oracle-xe-11g " ;
16+ String dockerImage = "gvenzl /oracle-xe:18.4.0-slim " ;
1717
18- String user = "system " ;
19- String password = "oracle " ;
18+ String user = "test " ;
19+ String password = "test " ;
2020 String database = ORACLE_DB ;
2121 /**
2222 * The SQL file path to execute after the container starts to initialize the database.
Original file line number Diff line number Diff line change 1515
1616
1717 <properties >
18- <testcontainers .version>1.16.0 </testcontainers .version>
18+ <testcontainers .version>1.16.2 </testcontainers .version>
1919 <spring .boot.version>2.5.5</spring .boot.version>
2020 <spring .cloud.version>2020.0.4</spring .cloud.version>
2121 <spring .cloud.gcp.version>1.2.8.RELEASE</spring .cloud.gcp.version>
You can’t perform that action at this time.
0 commit comments