Skip to content

Commit

Permalink
use memfiles e2e (#15924)
Browse files Browse the repository at this point in the history
Use memfiles in the e2e fuzzers when creating bootstrap files.
Signed-off-by: Asra Ali <[email protected]>
  • Loading branch information
asraa authored Apr 13, 2021
1 parent db7b43a commit ccd00c4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 0 additions & 3 deletions test/common/router/config_impl_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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<Server::Configuration::MockServerFactoryContext> factory_context_;
Expand Down
3 changes: 3 additions & 0 deletions test/integration/h1_fuzz.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 2 additions & 0 deletions test/integration/h2_fuzz.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,7 @@ class H2FuzzIntegrationTest : public HttpIntegrationTest {
private:
void sendFrame(const test::integration::H2TestFrame&,
std::function<void(const Envoy::Http::Http2::Http2Frame&)>);

Filesystem::ScopedUseMemfiles use_memfiles_{true};
};
} // namespace Envoy

0 comments on commit ccd00c4

Please sign in to comment.