TEST_P(ProtocolIntegrationTest, FragmentStrippedFromPathWithOverride) {
  config_helper_.addRuntimeOverride("envoy.reloadable_features.http_reject_path_with_fragment",
                                    "false");
  initialize();

  codec_client_ = makeHttpConnection(makeClientConnection((lookupPort("http"))));
  Http::TestRequestHeaderMapImpl request_headers{{":method", "GET"},
                                                 {":path", "/some/path?p1=v1#fragment"},
                                                 {":scheme", "http"},
                                                 {":authority", "foo.com"}};
  Http::TestRequestHeaderMapImpl expected_request_headers{request_headers};
  expected_request_headers.setPath("/some/path?p1=v1");
  Http::TestResponseHeaderMapImpl response_headers{{":status", "200"}};
  auto response = sendRequestAndWaitForResponse(expected_request_headers, 0, response_headers, 0, 0,
                                                TestUtility::DefaultTimeout);
  EXPECT_TRUE(upstream_request_->complete());
  ASSERT_TRUE(response->complete());
  EXPECT_EQ("200", response->headers().getStatusValue());
}
TEST_P(ProtocolIntegrationTest, FragmentStrippedFromPathWithOverride) {
  config_helper_.addRuntimeOverride("envoy.reloadable_features.http_reject_path_with_fragment",
                                    "false");
  initialize();

  codec_client_ = makeHttpConnection(makeClientConnection((lookupPort("http"))));
  Http::TestRequestHeaderMapImpl request_headers{{":method", "GET"},
                                                 {":path", "/some/path?p1=v1#fragment"},
                                                 {":scheme", "http"},
                                                 {":authority", "foo.com"}};
  Http::TestRequestHeaderMapImpl expected_request_headers{request_headers};
  expected_request_headers.setPath("/some/path?p1=v1");
  Http::TestResponseHeaderMapImpl response_headers{{":status", "200"}};
  auto response = sendRequestAndWaitForResponse(expected_request_headers, 0, response_headers, 0, 0,
                                                TestUtility::DefaultTimeout);
  EXPECT_TRUE(upstream_request_->complete());
  ASSERT_TRUE(response->complete());
  EXPECT_EQ("200", response->headers().getStatusValue());
}