diff --git a/operator/src/test/java/com/datastax/oss/kaap/autoscaler/BookKeeperAutoscalerTest.java b/operator/src/test/java/com/datastax/oss/kaap/autoscaler/BookKeeperAutoscalerTest.java index 1f4f25d4..8f3ee0a4 100644 --- a/operator/src/test/java/com/datastax/oss/kaap/autoscaler/BookKeeperAutoscalerTest.java +++ b/operator/src/test/java/com/datastax/oss/kaap/autoscaler/BookKeeperAutoscalerTest.java @@ -190,7 +190,7 @@ void start() { .get() .withPath("/api/v1/namespaces/ns/pods/%s".formatted(podName)) .andReturn(HttpURLConnection.HTTP_OK, pod) - .once(); + .always(); } final PodList podList = new PodListBuilder() .withItems(pods) diff --git a/operator/src/test/java/com/datastax/oss/kaap/autoscaler/broker/LoadReportResourceUsageSourceTest.java b/operator/src/test/java/com/datastax/oss/kaap/autoscaler/broker/LoadReportResourceUsageSourceTest.java index d87bee92..65106cc7 100644 --- a/operator/src/test/java/com/datastax/oss/kaap/autoscaler/broker/LoadReportResourceUsageSourceTest.java +++ b/operator/src/test/java/com/datastax/oss/kaap/autoscaler/broker/LoadReportResourceUsageSourceTest.java @@ -47,7 +47,6 @@ public class LoadReportResourceUsageSourceTest { @Builder(setterPrefix = "with") public static class MockServer implements AutoCloseable { - private PulsarClusterSpec pulsarClusterSpec; private BiConsumer podConsumer; @@ -93,6 +92,11 @@ void start() { .build(); podConsumer.accept(pod, this); pods.add(pod); + server.expect() + .get() + .withPath("/api/v1/namespaces/ns/pods/%s".formatted(podName)) + .andReturn(HttpURLConnection.HTTP_OK, pod) + .once(); } final PodList podList = new PodListBuilder() diff --git a/pom.xml b/pom.xml index 26755b83..444ad885 100644 --- a/pom.xml +++ b/pom.xml @@ -41,9 +41,9 @@ 17 UTF-8 UTF-8 - 5.0.1 + 5.1.4 - 6.2.0 + 6.3.1 7.7.0 4.10.0 1.18.24