Skip to content

Commit

Permalink
test/ext_proc: integ test improvement to check upstream hdrs
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Prisyazhnyy <john.koepi@gmail.com>
  • Loading branch information
sitano committed Feb 17, 2024
1 parent d768963 commit 6a28914
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2606,6 +2606,12 @@ TEST_P(ExtProcIntegrationTest, PerRouteGrpcMetadata) {
sendDownstreamRequest([](Http::RequestHeaderMap& headers) { headers.setPath("/foo"); });

processRequestHeadersMessage(*grpc_upstreams_[0], true, absl::nullopt);
EXPECT_EQ(
"c",
processor_stream_->headers().get(Http::LowerCaseString("b"))[0]->value().getStringView());
EXPECT_EQ(
"c",
processor_stream_->headers().get(Http::LowerCaseString("c"))[0]->value().getStringView());
handleUpstreamRequest();

processResponseHeadersMessage(*grpc_upstreams_[0], false, absl::nullopt);
Expand Down

0 comments on commit 6a28914

Please sign in to comment.