Router Check Tool HeaderMatcher and sendLocalReply#12810
Router Check Tool HeaderMatcher and sendLocalReply#12810mattklein123 merged 36 commits intoenvoyproxy:masterfrom
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);
}}; |
dio
left a comment
There was a problem hiding this comment.
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>
mattklein123
left a comment
There was a problem hiding this comment.
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>
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