Skip to content

Commit

Permalink
Refactor deprecated usages
Browse files Browse the repository at this point in the history
  • Loading branch information
scrocquesel committed Feb 18, 2024
1 parent 63e3e0a commit cff928b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ quarkus.quartz.start-mode=forced

quarkus.container-image.builder=jib
quarkus.operator-sdk.crd.apply=true
quarkus.kubernetes.namespace=default

mp.messaging.outgoing.ping-source-requests.connector=quarkus-http

%test.quarkus.operator-sdk.start-operator=true
19 changes: 19 additions & 0 deletions src/test/java/com/inulogic/PingSourceOperatorE2ETest.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,36 @@
import com.inulogic.api.PingSource;
import com.inulogic.api.PingSourceSpec;

import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;

import io.fabric8.kubernetes.api.model.ObjectMetaBuilder;
import io.fabric8.kubernetes.client.KubernetesClient;
import io.javaoperatorsdk.operator.Operator;
import io.quarkus.kubernetes.client.runtime.KubernetesClientUtils;
import io.quarkus.test.junit.QuarkusTest;
import jakarta.inject.Inject;

@QuarkusTest
@WithWiremock(name = "ping-source-requests", urlProperty = "mp.messaging.outgoing.ping-source-requests.url")
class PingSourceOperatorE2ETest {

@Inject
Operator operator;

@BeforeAll
void startOperator() {
operator.start();
}

@AfterAll
void stopOperator() {
operator.stop();
}

protected final KubernetesClient client = KubernetesClientUtils.createClient();

@Wiremock(name = "ping-source-requests")
Expand Down

0 comments on commit cff928b

Please sign in to comment.