Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 2 additions & 9 deletions test/integration/multiplexed_upstream_integration_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,10 @@ namespace Envoy {

INSTANTIATE_TEST_SUITE_P(Protocols, Http2UpstreamIntegrationTest,
testing::ValuesIn(HttpProtocolIntegrationTest::getProtocolTestParams(
{Http::CodecClient::Type::HTTP2}, {FakeHttpConnection::Type::HTTP2})),
{Http::CodecClient::Type::HTTP2},
{FakeHttpConnection::Type::HTTP2, FakeHttpConnection::Type::HTTP3})),
HttpProtocolIntegrationTest::protocolTestParamsToString);

// TODO(alyssawilk) move #defines into getProtocolTestParams in a follow-up
#ifdef ENVOY_ENABLE_QUIC
INSTANTIATE_TEST_SUITE_P(ProtocolsWithQuic, Http2UpstreamIntegrationTest,
testing::ValuesIn(HttpProtocolIntegrationTest::getProtocolTestParams(
{Http::CodecClient::Type::HTTP2}, {FakeHttpConnection::Type::HTTP3})),
HttpProtocolIntegrationTest::protocolTestParamsToString);
#endif

TEST_P(Http2UpstreamIntegrationTest, RouterRequestAndResponseWithBodyNoBuffer) {
testRouterRequestAndResponseWithBody(1024, 512, false);
}
Expand Down
16 changes: 2 additions & 14 deletions test/integration/protocol_integration_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1964,15 +1964,7 @@ name: encode-headers-return-stop-all-filter
ASSERT_TRUE(response->waitForEndStream());
ASSERT_TRUE(response->complete());
// Data is added in encodeData for all protocols, and encodeTrailers for HTTP/2 and above.
int times_added = (upstreamProtocol() == FakeHttpConnection::Type::HTTP1 ||
downstreamProtocol() == Http::CodecClient::Type::HTTP1)
? 1
: 2;
if (downstreamProtocol() == Http::CodecClient::Type::HTTP1 &&
upstreamProtocol() == FakeHttpConnection::Type::HTTP3) {
// TODO(alyssawilk) Figure out why the bytes mismatch with the test expectation below.
return;
}
int times_added = upstreamProtocol() == FakeHttpConnection::Type::HTTP1 ? 1 : 2;
EXPECT_EQ(count_ * size_ + added_decoded_data_size_ * times_added, response->body().size());
}

Expand Down Expand Up @@ -2016,13 +2008,9 @@ name: encode-headers-return-stop-all-filter
ASSERT_TRUE(response->waitForEndStream());
ASSERT_TRUE(response->complete());
// Data is added in encodeData for all protocols, and encodeTrailers for HTTP/2 and above.
int times_added = (upstreamProtocol() == FakeHttpConnection::Type::HTTP1 ||
downstreamProtocol() == Http::CodecClient::Type::HTTP1)
? 1
: 2;
int times_added = upstreamProtocol() == FakeHttpConnection::Type::HTTP1 ? 1 : 2;
if (downstreamProtocol() == Http::CodecClient::Type::HTTP1 &&
upstreamProtocol() == FakeHttpConnection::Type::HTTP3) {
// TODO(alyssawilk) Figure out why the bytes mismatch with the test expectation below.
Comment thread
asraa marked this conversation as resolved.
return;
}
EXPECT_EQ(count_ * size_ + added_decoded_data_size_ * times_added, response->body().size());
Expand Down