Browse Source

Reinstate failing tests after Tomcat upgrade

Closes gh-33917
pull/34705/head
Brian Clozel 10 months ago
parent
commit
0b92a51650
  1. 11
      spring-webflux/src/test/java/org/springframework/web/reactive/function/MultipartRouterFunctionIntegrationTests.java
  2. 17
      spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/MultipartWebClientIntegrationTests.java

11
spring-webflux/src/test/java/org/springframework/web/reactive/function/MultipartRouterFunctionIntegrationTests.java

@ -49,7 +49,6 @@ import org.springframework.web.reactive.function.server.RouterFunction; @@ -49,7 +49,6 @@ import org.springframework.web.reactive.function.server.RouterFunction;
import org.springframework.web.reactive.function.server.ServerRequest;
import org.springframework.web.reactive.function.server.ServerResponse;
import org.springframework.web.testfixture.http.server.reactive.bootstrap.HttpServer;
import org.springframework.web.testfixture.http.server.reactive.bootstrap.TomcatHttpServer;
import org.springframework.web.testfixture.http.server.reactive.bootstrap.UndertowHttpServer;
import static org.assertj.core.api.Assertions.assertThat;
@ -69,8 +68,6 @@ class MultipartRouterFunctionIntegrationTests extends AbstractRouterFunctionInte @@ -69,8 +68,6 @@ class MultipartRouterFunctionIntegrationTests extends AbstractRouterFunctionInte
@ParameterizedHttpServerTest
void multipartData(HttpServer httpServer) throws Exception {
assumeFalse(httpServer instanceof TomcatHttpServer,
"TomcatHttpServer fails with invalid request body chunk");
startServer(httpServer);
Mono<ResponseEntity<Void>> result = webClient
@ -89,8 +86,6 @@ class MultipartRouterFunctionIntegrationTests extends AbstractRouterFunctionInte @@ -89,8 +86,6 @@ class MultipartRouterFunctionIntegrationTests extends AbstractRouterFunctionInte
@ParameterizedHttpServerTest
void parts(HttpServer httpServer) throws Exception {
assumeFalse(httpServer instanceof TomcatHttpServer,
"TomcatHttpServer fails with invalid request body chunk");
startServer(httpServer);
Mono<ResponseEntity<Void>> result = webClient
@ -109,8 +104,6 @@ class MultipartRouterFunctionIntegrationTests extends AbstractRouterFunctionInte @@ -109,8 +104,6 @@ class MultipartRouterFunctionIntegrationTests extends AbstractRouterFunctionInte
@ParameterizedHttpServerTest
void transferTo(HttpServer httpServer) throws Exception {
assumeFalse(httpServer instanceof TomcatHttpServer,
"TomcatHttpServer fails with invalid request body chunk");
// TODO Determine why Undertow fails: https://github.com/spring-projects/spring-framework/issues/25310
assumeFalse(httpServer instanceof UndertowHttpServer, "Undertow currently fails with transferTo");
verifyTransferTo(httpServer);
@ -151,8 +144,6 @@ class MultipartRouterFunctionIntegrationTests extends AbstractRouterFunctionInte @@ -151,8 +144,6 @@ class MultipartRouterFunctionIntegrationTests extends AbstractRouterFunctionInte
@ParameterizedHttpServerTest
void partData(HttpServer httpServer) throws Exception {
assumeFalse(httpServer instanceof TomcatHttpServer,
"TomcatHttpServer fails with invalid request body chunk");
startServer(httpServer);
Mono<ResponseEntity<Void>> result = webClient
@ -171,8 +162,6 @@ class MultipartRouterFunctionIntegrationTests extends AbstractRouterFunctionInte @@ -171,8 +162,6 @@ class MultipartRouterFunctionIntegrationTests extends AbstractRouterFunctionInte
@ParameterizedHttpServerTest
void proxy(HttpServer httpServer) throws Exception {
assumeFalse(httpServer instanceof TomcatHttpServer,
"TomcatHttpServer fails with invalid request body chunk");
assumeFalse(httpServer instanceof UndertowHttpServer, "Undertow currently fails proxying requests");
startServer(httpServer);

17
spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/MultipartWebClientIntegrationTests.java

@ -60,7 +60,6 @@ import org.springframework.web.reactive.function.client.WebClient; @@ -60,7 +60,6 @@ import org.springframework.web.reactive.function.client.WebClient;
import org.springframework.web.server.adapter.WebHttpHandlerBuilder;
import org.springframework.web.testfixture.http.server.reactive.bootstrap.AbstractHttpHandlerIntegrationTests;
import org.springframework.web.testfixture.http.server.reactive.bootstrap.HttpServer;
import org.springframework.web.testfixture.http.server.reactive.bootstrap.TomcatHttpServer;
import org.springframework.web.testfixture.http.server.reactive.bootstrap.UndertowHttpServer;
import static org.assertj.core.api.Assertions.assertThat;
@ -88,8 +87,6 @@ class MultipartWebClientIntegrationTests extends AbstractHttpHandlerIntegrationT @@ -88,8 +87,6 @@ class MultipartWebClientIntegrationTests extends AbstractHttpHandlerIntegrationT
@ParameterizedHttpServerTest
void requestPart(HttpServer httpServer) throws Exception {
assumeFalse(httpServer instanceof TomcatHttpServer,
"TomcatHttpServer fails with invalid request body chunk");
startServer(httpServer);
Mono<ResponseEntity<Void>> result = webClient
@ -107,8 +104,6 @@ class MultipartWebClientIntegrationTests extends AbstractHttpHandlerIntegrationT @@ -107,8 +104,6 @@ class MultipartWebClientIntegrationTests extends AbstractHttpHandlerIntegrationT
@ParameterizedHttpServerTest
void requestBodyMap(HttpServer httpServer) throws Exception {
assumeFalse(httpServer instanceof TomcatHttpServer,
"TomcatHttpServer fails with invalid request body chunk");
startServer(httpServer);
Mono<String> result = webClient
@ -125,8 +120,6 @@ class MultipartWebClientIntegrationTests extends AbstractHttpHandlerIntegrationT @@ -125,8 +120,6 @@ class MultipartWebClientIntegrationTests extends AbstractHttpHandlerIntegrationT
@ParameterizedHttpServerTest
void requestBodyFlux(HttpServer httpServer) throws Exception {
assumeFalse(httpServer instanceof TomcatHttpServer,
"TomcatHttpServer fails with invalid request body chunk");
startServer(httpServer);
Mono<String> result = webClient
@ -143,8 +136,6 @@ class MultipartWebClientIntegrationTests extends AbstractHttpHandlerIntegrationT @@ -143,8 +136,6 @@ class MultipartWebClientIntegrationTests extends AbstractHttpHandlerIntegrationT
@ParameterizedHttpServerTest
void filePartsFlux(HttpServer httpServer) throws Exception {
assumeFalse(httpServer instanceof TomcatHttpServer,
"TomcatHttpServer fails with invalid request body chunk");
startServer(httpServer);
Mono<String> result = webClient
@ -161,8 +152,6 @@ class MultipartWebClientIntegrationTests extends AbstractHttpHandlerIntegrationT @@ -161,8 +152,6 @@ class MultipartWebClientIntegrationTests extends AbstractHttpHandlerIntegrationT
@ParameterizedHttpServerTest
void filePartsMono(HttpServer httpServer) throws Exception {
assumeFalse(httpServer instanceof TomcatHttpServer,
"TomcatHttpServer fails with invalid request body chunk");
startServer(httpServer);
Mono<String> result = webClient
@ -179,8 +168,6 @@ class MultipartWebClientIntegrationTests extends AbstractHttpHandlerIntegrationT @@ -179,8 +168,6 @@ class MultipartWebClientIntegrationTests extends AbstractHttpHandlerIntegrationT
@ParameterizedHttpServerTest
void transferTo(HttpServer httpServer) throws Exception {
assumeFalse(httpServer instanceof TomcatHttpServer,
"TomcatHttpServer fails with invalid request body chunk");
// TODO Determine why Undertow fails: https://github.com/spring-projects/spring-framework/issues/25310
assumeFalse(httpServer instanceof UndertowHttpServer, "Undertow currently fails with transferTo");
startServer(httpServer);
@ -201,8 +188,6 @@ class MultipartWebClientIntegrationTests extends AbstractHttpHandlerIntegrationT @@ -201,8 +188,6 @@ class MultipartWebClientIntegrationTests extends AbstractHttpHandlerIntegrationT
@ParameterizedHttpServerTest
void modelAttribute(HttpServer httpServer) throws Exception {
assumeFalse(httpServer instanceof TomcatHttpServer,
"TomcatHttpServer fails with invalid request body chunk");
startServer(httpServer);
Mono<String> result = webClient
@ -219,8 +204,6 @@ class MultipartWebClientIntegrationTests extends AbstractHttpHandlerIntegrationT @@ -219,8 +204,6 @@ class MultipartWebClientIntegrationTests extends AbstractHttpHandlerIntegrationT
@ParameterizedHttpServerTest
void partData(HttpServer httpServer) throws Exception {
assumeFalse(httpServer instanceof TomcatHttpServer,
"TomcatHttpServer fails with invalid request body chunk");
startServer(httpServer);
Mono<String> result = webClient

Loading…
Cancel
Save