Skip to content

Commit

Permalink
fixup: fuzzer test
Browse files Browse the repository at this point in the history
  • Loading branch information
eugeneo committed Jan 19, 2024
1 parent f7ba455 commit 3b40269
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion test/core/xds/xds_client_fuzzer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class Fuzzer {
}
break;
case xds_client_fuzzer::Action::kDumpCsdsData:
xds_client_->DumpClientConfigBinary();
DumpClientConfigBinary();
break;
case xds_client_fuzzer::Action::kTriggerConnectionFailure:
TriggerConnectionFailure(
Expand Down Expand Up @@ -225,6 +225,15 @@ class Fuzzer {
return &bootstrap.server();
}

void DumpClientConfigBinary() {
upb::Arena arena;
auto client_config = envoy_service_status_v3_ClientConfig_new(arena.ptr());
auto metadata_map = xds_client_->BuildResourceTypeMetadataMap();
std::vector<std::string> strings_holder;
xds_client_->DumpClientConfig(client_config, metadata_map, &strings_holder,
arena.ptr());
}

void TriggerConnectionFailure(const std::string& authority,
absl::Status status) {
gpr_log(GPR_INFO, "### TriggerConnectionFailure(%s): %s", authority.c_str(),
Expand Down

0 comments on commit 3b40269

Please sign in to comment.