File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
kubernetes-client-api/src/test/java/io/fabric8/kubernetes/client/http Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 1616package io .fabric8 .kubernetes .client .http ;
1717
1818import io .fabric8 .mockwebserver .DefaultMockServer ;
19- import okhttp3 .Headers ;
2019import okhttp3 .mockwebserver .RecordedRequest ;
2120import org .junit .jupiter .api .AfterAll ;
2221import org .junit .jupiter .api .BeforeAll ;
2322import org .junit .jupiter .api .DisplayName ;
2423import org .junit .jupiter .api .Test ;
2524
2625import java .net .InetSocketAddress ;
27- import java .util .Collections ;
2826import java .util .concurrent .TimeUnit ;
2927
3028import static org .assertj .core .api .Assertions .assertThat ;
@@ -61,9 +59,8 @@ protected void proxyConfigurationAddsRequiredHeaders() throws Exception {
6159 // Then
6260 assertThat (server .getLastRequest ())
6361 .extracting (RecordedRequest ::getHeaders )
64- .extracting (Headers ::toMultimap )
65- .hasFieldOrPropertyWithValue ("Host" , Collections .singletonList ("0.0.0.0:" + server .getPort ()))
66- .hasFieldOrPropertyWithValue ("Proxy-Authorization" , Collections .singletonList ("auth:cred" ));
62+ .returns ("0.0.0.0:" + server .getPort (), h -> h .get ("Host" ))
63+ .returns ("auth:cred" , h -> h .get ("Proxy-Authorization" ));
6764 }
6865 }
6966}
You can’t perform that action at this time.
0 commit comments