File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
util/src/test/java/io/kubernetes/client Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -42,8 +42,7 @@ public void getPodMetricsThrowsAPIExceptionWhenServerReturnsError() {
4242 String namespace = "default" ;
4343 Metrics metrics = new Metrics (client );
4444 wireMockRule .stubFor (
45- get (urlEqualTo (
46- "/apis/metrics.k8s.io/v1beta1/namespaces/" + namespace + "/pods?watch=false" ))
45+ get (urlPathMatching ("^/apis/metrics.k8s.io/v1beta1/namespaces/" + namespace + "/pods.*" ))
4746 .willReturn (
4847 aResponse ()
4948 .withStatus (503 )
@@ -61,7 +60,7 @@ public void getPodMetricsThrowsAPIExceptionWhenServerReturnsError() {
6160 public void getNodeMetricsThrowsAPIExceptionWhenServerReturnsError () {
6261 Metrics metrics = new Metrics (client );
6362 wireMockRule .stubFor (
64- get (urlEqualTo ( " /apis/metrics.k8s.io/v1beta1/nodes?watch=false " ))
63+ get (urlPathMatching ( "^ /apis/metrics.k8s.io/v1beta1/nodes.* " ))
6564 .willReturn (
6665 aResponse ()
6766 .withStatus (503 )
You can’t perform that action at this time.
0 commit comments