@@ -123,7 +123,7 @@ void informerInjection() throws InterruptedException {
123123 .metadata (new V1ObjectMeta ().namespace ("default" ).name ("bar1" ));
124124
125125 apiServer .stubFor (
126- get (urlMatching ( "^ /api/v1/pods.* " ))
126+ get (urlPathEqualTo ( " /api/v1/pods" ))
127127 .withPostServeAction ("semaphore" , getParams )
128128 .withQueryParam ("watch" , equalTo ("false" ))
129129 .willReturn (
@@ -135,13 +135,13 @@ void informerInjection() throws InterruptedException {
135135 .metadata (new V1ListMeta ().resourceVersion ("0" ))
136136 .items (Collections .singletonList (foo1 ))))));
137137 apiServer .stubFor (
138- get (urlMatching ( "^ /api/v1/pods.* " ))
138+ get (urlPathEqualTo ( " /api/v1/pods" ))
139139 .withPostServeAction ("semaphore" , watchParams )
140140 .withQueryParam ("watch" , equalTo ("true" ))
141141 .willReturn (aResponse ().withStatus (200 ).withBody ("{}" )));
142142
143143 apiServer .stubFor (
144- get (urlMatching ( "^ /api/v1/namespaces/default/configmaps.* " ))
144+ get (urlPathEqualTo ( " /api/v1/namespaces/default/configmaps" ))
145145 .withPostServeAction ("semaphore" , getParams )
146146 .withQueryParam ("watch" , equalTo ("false" ))
147147 .willReturn (
@@ -153,7 +153,7 @@ void informerInjection() throws InterruptedException {
153153 .metadata (new V1ListMeta ().resourceVersion ("0" ))
154154 .items (Collections .singletonList (bar1 ))))));
155155 apiServer .stubFor (
156- get (urlMatching ( "^ /api/v1/namespaces/default/configmaps.* " ))
156+ get (urlPathEqualTo ( " /api/v1/namespaces/default/configmaps" ))
157157 .withPostServeAction ("semaphore" , watchParams )
158158 .withQueryParam ("watch" , equalTo ("true" ))
159159 .willReturn (aResponse ().withStatus (200 ).withBody ("{}" )));
0 commit comments