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() {
42
42
String namespace = "default" ;
43
43
Metrics metrics = new Metrics (client );
44
44
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.*" ))
47
46
.willReturn (
48
47
aResponse ()
49
48
.withStatus (503 )
@@ -61,7 +60,7 @@ public void getPodMetricsThrowsAPIExceptionWhenServerReturnsError() {
61
60
public void getNodeMetricsThrowsAPIExceptionWhenServerReturnsError () {
62
61
Metrics metrics = new Metrics (client );
63
62
wireMockRule .stubFor (
64
- get (urlEqualTo ( " /apis/metrics.k8s.io/v1beta1/nodes?watch=false " ))
63
+ get (urlPathMatching ( "^ /apis/metrics.k8s.io/v1beta1/nodes.* " ))
65
64
.willReturn (
66
65
aResponse ()
67
66
.withStatus (503 )
You can’t perform that action at this time.
0 commit comments