Skip to content

Commit

Permalink
fix: remove redundant quarkus-test-openshift-client
Browse files Browse the repository at this point in the history
Signed-off-by: Marc Nuri <[email protected]>
  • Loading branch information
manusa committed Dec 24, 2024
1 parent 6b3c381 commit f6ef338
Show file tree
Hide file tree
Showing 11 changed files with 6 additions and 320 deletions.
5 changes: 0 additions & 5 deletions bom/application/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3373,11 +3373,6 @@
<artifactId>quarkus-test-kubernetes-client</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-test-openshift-client</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-test-amazon-lambda</artifactId>
Expand Down
5 changes: 0 additions & 5 deletions integration-tests/kubernetes-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,6 @@
<artifactId>quarkus-test-kubernetes-client</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-test-openshift-client</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
Expand Down

This file was deleted.

2 changes: 1 addition & 1 deletion integration-tests/openshift-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-test-openshift-client</artifactId>
<artifactId>quarkus-test-kubernetes-client</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,22 @@
import org.junit.jupiter.api.Test;

import io.fabric8.kubernetes.api.model.PodListBuilder;
import io.fabric8.kubernetes.client.server.mock.KubernetesMockServer;
import io.fabric8.openshift.api.model.Route;
import io.fabric8.openshift.api.model.RouteBuilder;
import io.fabric8.openshift.client.NamespacedOpenShiftClient;
import io.fabric8.openshift.client.server.mock.OpenShiftMockServer;
import io.quarkus.test.common.QuarkusTestResource;
import io.quarkus.test.junit.QuarkusTest;
import io.quarkus.test.kubernetes.client.KubernetesMockServerTestResource;
import io.quarkus.test.kubernetes.client.MockServer;
import io.quarkus.test.kubernetes.client.OpenShiftMockServerTestResource;
import io.restassured.RestAssured;

@QuarkusTestResource(OpenShiftMockServerTestResource.class)
@QuarkusTestResource(KubernetesMockServerTestResource.class)
@QuarkusTest
public class OpenShiftClientTest {

@MockServer
private OpenShiftMockServer mockServer;
private KubernetesMockServer mockServer;

@Test
void createRoute() {
Expand All @@ -36,7 +36,7 @@ void createRoute() {
.andReturn(200, expectedRoute)
.once();

NamespacedOpenShiftClient openShiftClient = mockServer.createOpenShiftClient();
NamespacedOpenShiftClient openShiftClient = mockServer.createClient().adapt(NamespacedOpenShiftClient.class);
openShiftClient.routes()
.create(new RouteBuilder().withNewMetadata().withName("myroute").withNamespace("test").endMetadata().build());
Route route = openShiftClient.routes().inNamespace("test").withName("myroute").get();
Expand Down
87 changes: 0 additions & 87 deletions test-framework/openshift-client/pom.xml

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion test-framework/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
<module>grpc</module>
<module>derby</module>
<module>kubernetes-client</module>
<module>openshift-client</module>
<module>junit5-config</module>
<module>junit5-internal</module>
<module>junit5</module>
Expand Down

0 comments on commit f6ef338

Please sign in to comment.