-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Router Check Tool HeaderMatcher and sendLocalReply #12810
Router Check Tool HeaderMatcher and sendLocalReply #12810
Conversation
Signed-off-by: Kevin Burek <kburek@lyft.com>
Signed-off-by: Kevin Burek <kburek@lyft.com>
88ebfdc
to
fecf2e5
Compare
Signed-off-by: Kevin Burek <kburek@lyft.com>
Signed-off-by: Kevin Burek <kburek@lyft.com>
Signed-off-by: Kevin Burek <kburek@lyft.com>
Signed-off-by: Kevin Burek <kburek@lyft.com>
Signed-off-by: Kevin Burek <kburek@lyft.com>
Signed-off-by: Kevin Burek <kburek@lyft.com>
/meow |
@dio Do you have any advice on how to keep the deprecated fields in the unit tests but not fail the CI build?
|
Signed-off-by: Kevin Burek <kburek@lyft.com>
/retest |
Retrying Azure Pipelines, to retry CircleCI checks, use |
Our CI,
How about to put those functions inline? Envoy::Http::Utility::EncodeFunctions encode_functions{
nullptr,
[&](Http::ResponseHeaderMapPtr&& headers, bool end_stream) -> void {
UNREFERENCED_PARAMETER(end_stream);
Http::HeaderMapImpl::copyFrom(*tool_config.response_headers_->header_map_, *headers);
},
[&](Buffer::Instance& data, bool end_stream) -> void {
UNREFERENCED_PARAMETER(data);
UNREFERENCED_PARAMETER(end_stream);
}}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good overall, some comments:
This reverts commit eb898b6. Signed-off-by: Kevin Burek <kburek@lyft.com>
Signed-off-by: Kevin Burek <kburek@lyft.com>
Signed-off-by: Kevin Burek <kburek@lyft.com>
Signed-off-by: Kevin Burek <kburek@lyft.com>
Signed-off-by: Kevin Burek <kburek@lyft.com>
Signed-off-by: Kevin Burek <kburek@lyft.com>
Signed-off-by: Kevin Burek <kburek@lyft.com>
Signed-off-by: Kevin Burek <kburek@lyft.com>
Signed-off-by: Kevin Burek <kburek@lyft.com>
Signed-off-by: Kevin Burek <kburek@lyft.com>
Signed-off-by: Kevin Burek <kburek@lyft.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, thanks for the changes, much more future proof. Just a few small comments and let's ship!
/wait
Remove default case Test failure strings Signed-off-by: Kevin Burek <kburek@lyft.com>
Signed-off-by: Kevin Burek <kburek@lyft.com>
Awesome, thanks, looks great. Can you merge main? Main was broken for a bit. /wait |
Signed-off-by: Kevin Burek <kburek@lyft.com>
Sorry gcc compile error looks legit. /wait |
The compile error doesn't make sense.
That switch statement treats all cases. This build error is exactly the safety mechanism we want to future-proof this method. |
Signed-off-by: Kevin Burek <kburek@lyft.com>
Remove the default case and put a NOT_REACHED at the end of the function (outside of the switch) and it will compile. Sorry for the trouble. /wait |
Signed-off-by: Kevin Burek <kburek@lyft.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Commit Message:
Set the content-type header in router_check_tool to better match what the real router does.
Additional Description:
This is a re-do of #10183
Risk Level: Low
Testing: Modified existing test, added negative test.
Docs Changes: Noted deprecation of
request_header_fields
,response_header_fields
, addition ofrequest_header_matches
,response_header_matches
.Fixes: #10072, #10229