Skip to content

Commit

Permalink
Enable checkstyle for test sources (#41)
Browse files Browse the repository at this point in the history
Signed-off-by: David Kornel <[email protected]>
  • Loading branch information
kornys authored Sep 10, 2024
1 parent d26aa0b commit ebf1539
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,7 @@
<configuration>
<consoleOutput>true</consoleOutput>
<failsOnError>true</failsOnError>
<includeTestSourceDirectory>true</includeTestSourceDirectory>
<configLocation>.checkstyle/checkstyle.xml</configLocation>
<suppressionsLocation>.checkstyle/suppressions.xml</suppressionsLocation>
</configuration>
Expand Down
4 changes: 4 additions & 0 deletions src/test/java/io/streams/e2e/Abstract.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright streamshub authors.
* License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html).
*/
package io.streams.e2e;

import io.skodjob.testframe.annotations.ResourceManager;
Expand Down
4 changes: 4 additions & 0 deletions src/test/java/io/streams/e2e/dummy/DummyST.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright streamshub authors.
* License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html).
*/
package io.streams.e2e.dummy;

import io.fabric8.kubernetes.api.model.NamespaceBuilder;
Expand Down
10 changes: 8 additions & 2 deletions src/test/java/io/streams/e2e/flink/sql/SqlExampleST.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright streamshub authors.
* License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html).
*/
package io.streams.e2e.flink.sql;

import io.fabric8.kubernetes.api.model.ConfigMapBuilder;
Expand Down Expand Up @@ -130,8 +134,10 @@ void testFlinkSqlExample() throws IOException {
KubeResourceManager.getInstance().createResourceWithWait(
strimziKafkaClients.consumerStrimzi()
);
JobUtils.waitForJobSuccess(namespace, strimziKafkaClients.getConsumerName(), TestFrameConstants.GLOBAL_TIMEOUT_MEDIUM);
String consumerPodName = KubeResourceManager.getKubeClient().listPodsByPrefixInName(namespace, consumerName).get(0).getMetadata().getName();
JobUtils.waitForJobSuccess(namespace, strimziKafkaClients.getConsumerName(),
TestFrameConstants.GLOBAL_TIMEOUT_MEDIUM);
String consumerPodName = KubeResourceManager.getKubeClient().listPodsByPrefixInName(namespace, consumerName)
.get(0).getMetadata().getName();

String log = KubeResourceManager.getKubeClient().getLogsFromPod(namespace, consumerPodName);
assertTrue(log.contains("user-9"));
Expand Down

0 comments on commit ebf1539

Please sign in to comment.