Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Klein <mklein@lyft.com>
  • Loading branch information
mattklein123 committed Oct 20, 2020
1 parent 30d14aa commit 6423720
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions test/extensions/filters/http/common/fuzz/uber_per_filter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -94,16 +94,12 @@ void cleanTapConfig(Protobuf::Message* message) {
// a static config filter is required to have one sink, but since validation isn't performed on
// the filter until after this function runs, we have to manually check that there are sinks
// before checking that they are not StreamingGrpc
else if (config.common_config().config_type_case() ==
envoy::extensions::common::tap::v3::CommonExtensionConfig::ConfigTypeCase::
kStaticConfig &&
!config.common_config().static_config().output_config().sinks().empty() &&
config.common_config()
.static_config()
.output_config()
.sinks(0)
.output_sink_type_case() ==
envoy::config::tap::v3::OutputSink::OutputSinkTypeCase::kStreamingGrpc) {
if (config.common_config().config_type_case() ==
envoy::extensions::common::tap::v3::CommonExtensionConfig::ConfigTypeCase::
kStaticConfig &&
!config.common_config().static_config().output_config().sinks().empty() &&
config.common_config().static_config().output_config().sinks(0).output_sink_type_case() ==
envoy::config::tap::v3::OutputSink::OutputSinkTypeCase::kStreamingGrpc) {
// will be caught in UberFilterFuzzer::fuzz
throw EnvoyException("received input with not implemented output_sink_type StreamingGrpcSink");
}
Expand Down

0 comments on commit 6423720

Please sign in to comment.