Remove WebClientIntegrationTests#exchangeWithRelativeUrl outdated test

This test can fail when a web server runs on port 80 and
is not relevant anymore due to the removal of related feature
via 6e936a4081.

Closes gh-28902
This commit is contained in:
Sébastien Deleuze 2023-01-20 12:20:09 +01:00
parent 20c79e1481
commit 8f94c4e933
1 changed files with 0 additions and 18 deletions

View File

@ -1091,24 +1091,6 @@ class WebClientIntegrationTests {
});
}
@ParameterizedWebClientTest // SPR-15782
void exchangeWithRelativeUrl(ClientHttpConnector connector) {
startServer(connector);
String uri = "/api/v4/groups/1";
Mono<ResponseEntity<Void>> responseMono = WebClient.builder().build().get().uri(uri)
.retrieve().toBodilessEntity();
StepVerifier.create(responseMono)
.expectErrorSatisfies(throwable -> {
assertThat(throwable).isInstanceOf(WebClientRequestException.class);
WebClientRequestException ex = (WebClientRequestException) throwable;
assertThat(ex.getMethod()).isEqualTo(HttpMethod.GET);
assertThat(ex.getUri()).isEqualTo(URI.create(uri));
})
.verify(Duration.ofSeconds(5));
}
@ParameterizedWebClientTest
void filter(ClientHttpConnector connector) {
startServer(connector);