Test that malformed HTTP request is not validated#95886
Test that malformed HTTP request is not validated#95886albertzaharovits merged 5 commits intoelastic:mainfrom
Conversation
jakelandis
left a comment
There was a problem hiding this comment.
LGTM - However, I also don't have enough experience to advise on the quality or coverage of the tests. The comments help and to the best of my ability they appear solid but if you are looking for critical feedback on details of what/how to test you may want to seek an additional reviewer (but that is not necessary since these are just tests).
It's tricky to asses the coverage when interfacing so closely with the netty code, as the API surface is large and not explicitly defined (it's only defined by the object types, and their order, as they flow through the pipeline from request decoding through aggregation). This PR only covers a single case/observation: when there's a HTTP decoding error, a new FullHttpRequest is generated rather than a HttpRequest, as is normally the case. So, the tests in The tests in |
This PR tests that malformed HTTP requests that fail at the decoding stage don't go through validation and are further dispatched as bad requests. Related: elastic#95112
This PR tests that malformed HTTP requests that
fail at the decoding stage don't go through validation and
are further dispatched as bad requests.
Related: #95112