Repository navigation
Migrate servlet tests to HttpServerTest and ignoreActiveSpan for "root" - #932
Conversation
Currently missing the authentication tests which need to be added to the parent, but other than that, testing is more thorough. Discovered that trace propagation for Jetty Async is currently busted so I commented that portion of the test out until we can get it fixed.
This allows it to finish the span with the correct response.
910d5ff to
816408e
Compare
816408e to
9681b91
Compare
labbati
left a comment
There was a problem hiding this comment.
I like what we have done here. My main question is about authentication. I noticed we removed quite a few tests for it. Was this necessary just because this changes? What we can do to bring them back and how/when we plan to do it?
| } | ||
|
|
||
| @WebServlet(asyncSupported = true) | ||
| static class BlockingAsync extends AbstractHttpServlet { |
There was a problem hiding this comment.
Isn't BlockAsync not worth testing anymore?
There was a problem hiding this comment.
The two concepts are combined into the single async test.
| } | ||
| } | ||
|
|
||
| // TODO: Add tests for this! |
There was a problem hiding this comment.
Is this a left over or we need to add tests for something?
There was a problem hiding this comment.
DispatchRecursive isn't being tested anymore. Think it's useful to still have?
| servletContext.addServletMappingDecoded(path, name) | ||
| } | ||
|
|
||
| // FIXME: Add authentication tests back in... |
labbati
left a comment
There was a problem hiding this comment.
Thanks for the changes. This looks good to me now.
Currently missing the authentication tests which need to be added to the parent, but other than that, testing is more thorough.
Discovered that trace propagation for Jetty Async is currently busted so I commented that portion of the test out until we can get it fixed.
Also discovered that incorrect status code was being set on async dispatch and span was being finished too early.