Skip to content

Commit f143023

Browse files
committed
use snapshot version for testing
Signed-off-by: Lukas Kral <[email protected]>
1 parent fbfbee4 commit f143023

2 files changed

Lines changed: 32 additions & 5 deletions

File tree

pom.xml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,20 @@
3939
</developer>
4040
</developers>
4141

42+
<repositories>
43+
<repository>
44+
<name>Central Portal Snapshots</name>
45+
<id>central-portal-snapshots</id>
46+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
47+
<releases>
48+
<enabled>false</enabled>
49+
</releases>
50+
<snapshots>
51+
<enabled>true</enabled>
52+
</snapshots>
53+
</repository>
54+
</repositories>
55+
4256
<properties>
4357
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
4458
<maven.compiler.release>21</maven.compiler.release>
@@ -121,7 +135,7 @@
121135
<skodjob-doc.version>0.6.0</skodjob-doc.version>
122136
<helm-client.version>0.0.15</helm-client.version>
123137
<access-operator.version>0.2.0</access-operator.version>
124-
<test-clients.version>0.13.0</test-clients.version>
138+
<test-clients.version>0.14.0-SNAPSHOT</test-clients.version>
125139
<!-- properties to skip surefire tests during failsafe execution -->
126140
<skipTests>false</skipTests>
127141
<skip.surefire.tests>${skipTests}</skip.surefire.tests>
@@ -797,7 +811,7 @@
797811
<dependency>
798812
<groupId>io.strimzi.test-clients</groupId>
799813
<artifactId>builders</artifactId>
800-
<version>0.14.0-SNAPSHOT</version>
814+
<version>${test-clients.version}</version>
801815
<scope>provided</scope>
802816
</dependency>
803817
</dependencies>

systemtest/src/test/java/io/strimzi/systemtest/specific/RackAwarenessST.java

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -424,9 +424,22 @@ void testKafkaEnvironmentVariableRackAwareness() {
424424
assertThat(AdminClientUtils.getRack(nodeDescription, "0").contains("rack-a"), is(true));
425425

426426
LOGGER.info("Producing and Consuming data in the Kafka cluster: {}/{}", testStorage.getNamespaceName(), testStorage.getClusterName());
427-
KafkaClients kafkaClients = ClientUtils.getInstantPlainClients(testStorage);
428-
KubeResourceManager.get().createResourceWithWait(kafkaClients.producerStrimzi(), kafkaClients.consumerStrimzi());
429-
ClientUtils.waitForInstantClientSuccess(testStorage);
427+
final KafkaProducerConsumer kafkaProducerConsumer = new KafkaProducerConsumerBuilder()
428+
.withProducerName(testStorage.getProducerName())
429+
.withConsumerName(testStorage.getConsumerName())
430+
.withNamespaceName(testStorage.getNamespaceName())
431+
.withTopicName(testStorage.getTopicName())
432+
.withConsumerGroup(ClientUtils.generateRandomConsumerGroup())
433+
.withBootstrapAddress(KafkaResources.plainBootstrapAddress(testStorage.getClusterName()))
434+
.withMessageCount(testStorage.getMessageCount())
435+
.build();
436+
437+
KubeResourceManager.get().createResourceWithWait(
438+
kafkaProducerConsumer.getProducer().getJob(),
439+
kafkaProducerConsumer.getConsumer().getJob()
440+
);
441+
442+
ClientUtils.waitForClientsSuccess(testStorage.getNamespaceName(), testStorage.getConsumerName(), testStorage.getProducerName(), testStorage.getMessageCount());
430443
}
431444

432445
@BeforeAll

0 commit comments

Comments
 (0)