Skip to content
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

Unit tests for Jersey Netty Http Container #4329

Open
wants to merge 1 commit into
base: 2.x
Choose a base branch
from

Conversation

010gvr
Copy link
Contributor

@010gvr 010gvr commented Nov 30, 2019

Current unit tests only validate Netty's JerseyClientHandler against a Grizzly http server. This commit adds test cases to validate the same using Netty's JerseyServerHandler using NettyTestContainerFactory.

Also adding extra test cases to effectively validate the bug fixes for #3500 and #3568 (that is, these new test cases will fail if ran against the code base older than #4312)

Fixes #3500 and #3568

Signed-off-by: Venkat Ganesh [email protected]

@010gvr
Copy link
Contributor Author

010gvr commented Nov 30, 2019

hi @senivam @jansupol Thanks for merging #4312. Just to avoid future regression, I've added a few missing test cases.

You may confirm this commit by simply running these tests again commits older than 8dcfed4 and the following two tests would fail:

  1. Buffer overflow on large data response
  2. ParallelTest

@010gvr 010gvr force-pushed the test/netty branch 2 times, most recently from e1b08df to 0987c2a Compare December 1, 2019 18:52
Current unit tests only validate Netty's `JerseyClientHandler` against a Grizzly http server. This commit adds test cases to validate the same using Netty's `JerseyServerHandler` using `NettyTestContainerFactory`.

Also adding extra test cases to effectively validate the bug fixes for eclipse-ee4j#3500 and eclipse-ee4j#3568 (that is, these new test cases will fail if ran against the code base older than eclipse-ee4j#4312)

Fixes eclipse-ee4j#3500 and eclipse-ee4j#3568

Signed-off-by: Venkat Ganesh <[email protected]>
@010gvr
Copy link
Contributor Author

010gvr commented Dec 1, 2019

the travis node running tests on openjdk11 seems a bit flaky. If there's a build failure, it's more likely due to that.

@010gvr
Copy link
Contributor Author

010gvr commented Dec 28, 2019

Bump... Possible to get this in before next release?

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.

Buffer overflow due to timeout with Netty + Jersey
1 participant