-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
8303457: Introduce convenience test library APIs for creating test servers for tests in test/jdk/java/net/httpclient #12808
Conversation
👋 Welcome back jpai! A progress list of the required criteria for merging this PR into |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Jaikiran, that looks very good. Approving on the condition that all modified tests still pass.
@jaikiran This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 2 new commits pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the ➡️ To integrate this PR with the above commit message to the |
Thank you Daniel. tier tests completed successfully. Plus, I ran java/net/httpclient tests with a repeat count of 50 and those too completed successfully. I'll integrate this shortly. |
/integrate |
Going to push as commit 72de24e.
Your commit was automatically rebased without conflicts. |
Can I please get a review for this test-only change which addresses https://bugs.openjdk.org/browse/JDK-8303457?
Tests that reside in
test/jdk/java/net/httpclient/
create and use test servers for executing various HttpClient tests against those test servers. As noted in the JBS issue, the code in most of these tests is repeated for the test server creation. All these tests use the test library attest/jdk/java/net/httpclient/lib/jdk/httpclient/test/lib/
.The changes in this PR include a set of new APIs in
test/jdk/java/net/httpclient/lib/jdk/httpclient/test/lib/common/HttpServerAdapters.java
to help reduce the boilerplate. The rest of the changes across the existing tests is to use these new APIs. No functional changes to the tests has been done.Locally the tests in
test/jdk/java/net/httpclient/
continue to pass with these changes. tier testing is in progress to verify no unforeseen regressions are introduced.Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk pull/12808/head:pull/12808
$ git checkout pull/12808
Update a local copy of the PR:
$ git checkout pull/12808
$ git pull https://git.openjdk.org/jdk pull/12808/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 12808
View PR using the GUI difftool:
$ git pr show -t 12808
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/12808.diff