@@ -50,14 +50,15 @@ class LuaIntegrationTest : public UpstreamDownstreamIntegrationTest {
5050 return ret;
5151 }
5252
53- void initializeFilter (const std::string& filter_config, const std::string& domain = " *" ) {
53+ void initializeFilter (const std::string& filter_config, const std::string& domain = " *" ,
54+ bool test_large_body = false ) {
5455 config_helper_.prependFilter (filter_config, testing_downstream_filter_);
5556
5657 // Create static clusters.
5758 createClusters ();
5859
5960 config_helper_.addConfigModifier (
60- [domain](
61+ [domain, test_large_body, this ](
6162 envoy::extensions::filters::network::http_connection_manager::v3::HttpConnectionManager&
6263 hcm) {
6364 hcm.mutable_route_config ()
@@ -74,6 +75,10 @@ class LuaIntegrationTest : public UpstreamDownstreamIntegrationTest {
7475 new_route->mutable_response_headers_to_add ()->Add ()->mutable_header ();
7576 response_header->set_key (" fake_header" );
7677 response_header->set_value (" fake_value" );
78+ if (downstream_protocol_ == Http::CodecType::HTTP2 && test_large_body) {
79+ hcm.mutable_http2_protocol_options ()->mutable_initial_stream_window_size ()->set_value (
80+ 16 * 1024 * 1024 );
81+ }
7782
7883 const std::string key = " envoy.filters.http.lua" ;
7984 const std::string yaml =
@@ -251,7 +256,7 @@ class LuaIntegrationTest : public UpstreamDownstreamIntegrationTest {
251256 }
252257
253258 IntegrationStreamDecoderPtr initializeAndSendRequest (const std::string& code) {
254- initializeFilter (code);
259+ initializeFilter (code, " * " , true );
255260 codec_client_ = makeHttpConnection (makeClientConnection (lookupPort (" http" )));
256261 Http::TestRequestHeaderMapImpl request_headers{{" :method" , " POST" },
257262 {" :path" , " /test/long/url" },
0 commit comments