From c70d6fadf93396e183b7f14c1c9b01aa46458f5e Mon Sep 17 00:00:00 2001 From: Paul Gier Date: Mon, 28 Aug 2023 10:33:37 -0500 Subject: [PATCH] upgrade quarkus-sdk 5.0.1->5.1.4 (#146) --- .../oss/kaap/autoscaler/BookKeeperAutoscalerTest.java | 2 +- .../broker/LoadReportResourceUsageSourceTest.java | 6 +++++- pom.xml | 4 ++-- 3 files changed, 8 insertions(+), 4 deletions(-) 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