From ccd00c4edf81d846650519c7d09ba76142d2d756 Mon Sep 17 00:00:00 2001 From: asraa Date: Tue, 13 Apr 2021 11:49:37 -0400 Subject: [PATCH] use memfiles e2e (#15924) Use memfiles in the e2e fuzzers when creating bootstrap files. Signed-off-by: Asra Ali --- test/common/router/config_impl_test.cc | 3 --- test/integration/h1_fuzz.h | 3 +++ test/integration/h2_fuzz.h | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/test/common/router/config_impl_test.cc b/test/common/router/config_impl_test.cc index 94d9337e1388..75ec953c963b 100644 --- a/test/common/router/config_impl_test.cc +++ b/test/common/router/config_impl_test.cc @@ -321,9 +321,6 @@ most_specific_header_mutations_wins: {0} return fmt::format(yaml, most_specific_wins); } - // TODO(asraa) remove this when flipping fuzzers on. - Filesystem::ScopedUseMemfiles use_memfiles_{true}; - Stats::TestUtil::TestSymbolTable symbol_table_; Api::ApiPtr api_; NiceMock factory_context_; diff --git a/test/integration/h1_fuzz.h b/test/integration/h1_fuzz.h index e4ba7edccb0a..f1179598e0e7 100644 --- a/test/integration/h1_fuzz.h +++ b/test/integration/h1_fuzz.h @@ -17,6 +17,9 @@ class H1FuzzIntegrationTest : public HttpIntegrationTest { void initialize() override; void replay(const test::integration::CaptureFuzzTestCase&, bool ignore_response); const std::chrono::milliseconds max_wait_ms_{10}; + +private: + Filesystem::ScopedUseMemfiles use_memfiles_{true}; }; } // namespace Envoy diff --git a/test/integration/h2_fuzz.h b/test/integration/h2_fuzz.h index b73ca0ffbfa2..48498d785432 100644 --- a/test/integration/h2_fuzz.h +++ b/test/integration/h2_fuzz.h @@ -23,5 +23,7 @@ class H2FuzzIntegrationTest : public HttpIntegrationTest { private: void sendFrame(const test::integration::H2TestFrame&, std::function); + + Filesystem::ScopedUseMemfiles use_memfiles_{true}; }; } // namespace Envoy