Skip to content

Commit bfc0a1b

Browse files
csvirimetacosm
authored andcommitted
improve: replace jenvtest with kube-api-test from fabric8 client (#2497)
Signed-off-by: Attila Mészáros <[email protected]>
1 parent e1477e0 commit bfc0a1b

File tree

3 files changed

+6
-12
lines changed

3 files changed

+6
-12
lines changed

operator-framework/pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@
8585
<scope>test</scope>
8686
</dependency>
8787
<dependency>
88-
<groupId>io.javaoperatorsdk</groupId>
89-
<artifactId>jenvtest</artifactId>
88+
<groupId>io.fabric8</groupId>
89+
<artifactId>kube-api-test-client-inject</artifactId>
9090
<scope>test</scope>
9191
</dependency>
9292
</dependencies>

operator-framework/src/test/java/io/javaoperatorsdk/operator/dependent/informerrelatedbehavior/InformerRelatedBehaviorITS.java

+1-5
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@
33
import java.time.Duration;
44

55
import org.junit.jupiter.api.*;
6-
import org.slf4j.Logger;
7-
import org.slf4j.LoggerFactory;
86

7+
import io.fabric8.kubeapitest.junit.EnableKubeAPIServer;
98
import io.fabric8.kubernetes.api.model.ConfigMap;
109
import io.fabric8.kubernetes.api.model.ConfigMapBuilder;
1110
import io.fabric8.kubernetes.api.model.Namespace;
@@ -18,7 +17,6 @@
1817
import io.fabric8.kubernetes.client.KubernetesClient;
1918
import io.fabric8.kubernetes.client.KubernetesClientBuilder;
2019
import io.fabric8.kubernetes.client.utils.KubernetesResourceUtil;
21-
import io.javaoperatorsdk.jenvtest.junit.EnableKubeAPIServer;
2220
import io.javaoperatorsdk.operator.Operator;
2321
import io.javaoperatorsdk.operator.OperatorException;
2422
import io.javaoperatorsdk.operator.ReconcilerUtils;
@@ -49,8 +47,6 @@
4947
@EnableKubeAPIServer(apiServerFlags = {"--min-request-timeout", "1"}, updateKubeConfigFile = true)
5048
class InformerRelatedBehaviorITS {
5149

52-
private static final Logger log = LoggerFactory.getLogger(InformerRelatedBehaviorITS.class);
53-
5450
public static final String TEST_RESOURCE_NAME = "test1";
5551
public static final String ADDITIONAL_NAMESPACE_SUFFIX = "-additional";
5652

pom.xml

+3-5
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@
7474
<micrometer-core.version>1.13.3</micrometer-core.version>
7575
<okhttp.version>4.12.0</okhttp.version>
7676
<caffeine.version>3.1.8</caffeine.version>
77-
<jenvtest.version>0.9.6</jenvtest.version>
7877
<mustache.version>0.9.11</mustache.version>
7978
<commons.io.version>2.16.1</commons.io.version>
8079

@@ -215,10 +214,9 @@
215214
<version>${caffeine.version}</version>
216215
</dependency>
217216
<dependency>
218-
<groupId>io.javaoperatorsdk</groupId>
219-
<artifactId>jenvtest</artifactId>
220-
<version>${jenvtest.version}</version>
221-
<scope>test</scope>
217+
<groupId>io.fabric8</groupId>
218+
<artifactId>kube-api-test-client-inject</artifactId>
219+
<version>${fabric8-client.version}</version>
222220
</dependency>
223221
<!-- Kubernetes client HTTP client implementations -->
224222
<!-- Default implementation is controlled by fabric8-httpclient-impl.name property -->

0 commit comments

Comments
 (0)