Skip to content

Commit 1e63684

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

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
@@ -73,7 +73,6 @@
7373
<spring-boot.version>2.7.3</spring-boot.version>
7474
<micrometer-core.version>1.14.1</micrometer-core.version>
7575
<caffeine.version>3.1.8</caffeine.version>
76-
<jenvtest.version>0.9.6</jenvtest.version>
7776
<mustache.version>0.9.11</mustache.version>
7877
<commons.io.version>2.18.0</commons.io.version>
7978

@@ -203,10 +202,9 @@
203202
<version>${caffeine.version}</version>
204203
</dependency>
205204
<dependency>
206-
<groupId>io.javaoperatorsdk</groupId>
207-
<artifactId>jenvtest</artifactId>
208-
<version>${jenvtest.version}</version>
209-
<scope>test</scope>
205+
<groupId>io.fabric8</groupId>
206+
<artifactId>kube-api-test-client-inject</artifactId>
207+
<version>${fabric8-client.version}</version>
210208
</dependency>
211209
<!-- Kubernetes client HTTP client implementations -->
212210
<!-- Default implementation is controlled by fabric8-httpclient-impl.name property -->

0 commit comments

Comments
 (0)