From edb9ddd928822e339d3d0fa8f7f85bbf7c473d28 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 11 Nov 2025 00:02:11 +0000 Subject: [PATCH 1/2] Initial plan From c46c8b712ae5ddffdc944f39fd28cb639a70f5f4 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 11 Nov 2025 00:16:30 +0000 Subject: [PATCH 2/2] Replace urlMatching with urlPathEqualTo in KubernetesInformerCreatorTest Co-authored-by: brendandburns <5751682+brendandburns@users.noreply.github.com> --- .../controller/KubernetesInformerCreatorTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spring/src/test/java/io/kubernetes/client/spring/extended/controller/KubernetesInformerCreatorTest.java b/spring/src/test/java/io/kubernetes/client/spring/extended/controller/KubernetesInformerCreatorTest.java index f052e80dfe..e701d71f7a 100644 --- a/spring/src/test/java/io/kubernetes/client/spring/extended/controller/KubernetesInformerCreatorTest.java +++ b/spring/src/test/java/io/kubernetes/client/spring/extended/controller/KubernetesInformerCreatorTest.java @@ -123,7 +123,7 @@ void informerInjection() throws InterruptedException { .metadata(new V1ObjectMeta().namespace("default").name("bar1")); apiServer.stubFor( - get(urlMatching("^/api/v1/pods.*")) + get(urlPathEqualTo("/api/v1/pods")) .withPostServeAction("semaphore", getParams) .withQueryParam("watch", equalTo("false")) .willReturn( @@ -135,13 +135,13 @@ void informerInjection() throws InterruptedException { .metadata(new V1ListMeta().resourceVersion("0")) .items(Collections.singletonList(foo1)))))); apiServer.stubFor( - get(urlMatching("^/api/v1/pods.*")) + get(urlPathEqualTo("/api/v1/pods")) .withPostServeAction("semaphore", watchParams) .withQueryParam("watch", equalTo("true")) .willReturn(aResponse().withStatus(200).withBody("{}"))); apiServer.stubFor( - get(urlMatching("^/api/v1/namespaces/default/configmaps.*")) + get(urlPathEqualTo("/api/v1/namespaces/default/configmaps")) .withPostServeAction("semaphore", getParams) .withQueryParam("watch", equalTo("false")) .willReturn( @@ -153,7 +153,7 @@ void informerInjection() throws InterruptedException { .metadata(new V1ListMeta().resourceVersion("0")) .items(Collections.singletonList(bar1)))))); apiServer.stubFor( - get(urlMatching("^/api/v1/namespaces/default/configmaps.*")) + get(urlPathEqualTo("/api/v1/namespaces/default/configmaps")) .withPostServeAction("semaphore", watchParams) .withQueryParam("watch", equalTo("true")) .willReturn(aResponse().withStatus(200).withBody("{}")));