Skip to content

Commit

Permalink
Renamed HttpClientTest.testIssue2825_H1S_H2C_H2 to testIssue2825, whi…
Browse files Browse the repository at this point in the history
…ch is also checking HTTP/1.1 protocol
  • Loading branch information
pderop committed Sep 4, 2023
1 parent 585cb07 commit 972b528
Showing 1 changed file with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3367,6 +3367,18 @@ static Stream<Arguments> issue2825Params() {
Supplier<Publisher<ByteBuf>> postFlux = () -> Flux.just(Unpooled.wrappedBuffer(PAYLOAD));

return Stream.of(
Arguments.of(HttpProtocol.HTTP11, HttpProtocol.HTTP11,
null, // no SSL Context
null, // no SSL Context
Named.of("postMono", postMono),
Named.of("bytes", PAYLOAD.length)),

Arguments.of(HttpProtocol.HTTP11, HttpProtocol.HTTP11,
null, // no SSL Context
null, // no SSL Context
Named.of("postFlux", postFlux),
Named.of("bytes", PAYLOAD.length)),

Arguments.of(HttpProtocol.HTTP11, HttpProtocol.HTTP11,
Named.of("Http11SslContextSpec", serverCtx11),
Named.of("Http11SslContextSpec", clientCtx11),
Expand Down Expand Up @@ -3407,7 +3419,7 @@ static Stream<Arguments> issue2825Params() {

@ParameterizedTest
@MethodSource("issue2825Params")
void testIssue2825_H1S_H2C_H2(HttpProtocol serverProtocols, HttpProtocol clientProtocols,
void testIssue2825(HttpProtocol serverProtocols, HttpProtocol clientProtocols,
@Nullable SslProvider.ProtocolSslContextSpec serverCtx, @Nullable SslProvider.ProtocolSslContextSpec clientCtx,
Supplier<Publisher<ByteBuf>> payload, long bytesToSend) {
int maxSize = 1024 * 64; // 400 bad request is returned if payload exceeds this limit, and the socket is then closed
Expand Down

0 comments on commit 972b528

Please sign in to comment.