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 16
16
package io .fabric8 .kubernetes .client .http ;
17
17
18
18
import io .fabric8 .mockwebserver .DefaultMockServer ;
19
- import okhttp3 .Headers ;
20
19
import okhttp3 .mockwebserver .RecordedRequest ;
21
20
import org .junit .jupiter .api .AfterAll ;
22
21
import org .junit .jupiter .api .BeforeAll ;
23
22
import org .junit .jupiter .api .DisplayName ;
24
23
import org .junit .jupiter .api .Test ;
25
24
26
25
import java .net .InetSocketAddress ;
27
- import java .util .Collections ;
28
26
import java .util .concurrent .TimeUnit ;
29
27
30
28
import static org .assertj .core .api .Assertions .assertThat ;
@@ -61,9 +59,8 @@ protected void proxyConfigurationAddsRequiredHeaders() throws Exception {
61
59
// Then
62
60
assertThat (server .getLastRequest ())
63
61
.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" ));
67
64
}
68
65
}
69
66
}
You can’t perform that action at this time.
0 commit comments