Skip to content

Commit

Permalink
fuzz: remove header prefix from Bootstrap (#7803)
Browse files Browse the repository at this point in the history
Signed-off-by: Asra Ali <[email protected]>
  • Loading branch information
asraa authored and mattklein123 committed Aug 2, 2019
1 parent b1fcf27 commit fc8d6f5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
stats_sinks {
typed_config {
type_url: "type.googleapis.com/envoy.api.v2.route.Route"
value: "\022*J :222222\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\t2871770\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\0378\377\377\377\377\377\377\377\377 8\377\377\377\377\377\377\377\377\37722222222222222222220\022"
}
}
header_prefix: "type.googleapis.com/envoy.api.v2.route.Route"
3 changes: 3 additions & 0 deletions test/server/server_fuzz_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ makeHermeticPathsAndPorts(Fuzz::PerTestEnvironment& test_env,
// we lose here. If we don't sanitize here, we get flakes due to port bind conflicts, file
// conflicts, etc.
output.clear_admin();
// The header_prefix is a write-once then read-only singleton that persists across tests. We clear
// this field so that fuzz tests don't fail over multiple iterations.
output.clear_header_prefix();
if (output.has_runtime()) {
output.mutable_runtime()->set_symlink_root(test_env.temporaryPath(""));
}
Expand Down

0 comments on commit fc8d6f5

Please sign in to comment.