Skip to content

[UNDERTOW-2116] Add missing @Test to testServletRedirectHead - #2007

Open
sharanggupta wants to merge 1 commit into
undertow-io:mainfrom
sharanggupta:UNDERTOW-2116-run-redirect-head-test
Open

sharanggupta wants to merge 1 commit into
undertow-io:mainfrom
sharanggupta:UNDERTOW-2116-run-redirect-head-test

Conversation

@sharanggupta

Copy link
Copy Markdown

Jira: https://issues.redhat.com/browse/UNDERTOW-2116

testServletRedirectHead was added with the UNDERTOW-2116 fix, but without @Test, so JUnit never ran it. The other tests in RedirectWithContentLengthTestCase all have the annotation.

With @Test, the test passes in every -Pproxy execution (mvn test -Pproxy -pl servlet -Dtest=RedirectWithContentLengthTestCase) on JDK 17 and 21. It's the only test in the class that fails when a HEAD response after a redirect loses its Content-Length.

The HEAD-after-redirect test added for UNDERTOW-2116 was committed
without @test, so JUnit never ran it. Its sibling tests in
RedirectWithContentLengthTestCase are all annotated.

Signed-off-by: Sharang Gupta <sharang@sharanggupta.dev>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant