-
Notifications
You must be signed in to change notification settings - Fork 6.1k
8365072: Refactor tests to use PEM API (Phase 2) #27194
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
Conversation
1. test/jdk/java/security/cert/CertPathBuilder/selfIssued/StatusLoopDependency.java 2. test/jdk/java/security/cert/CertPathValidator/indirectCRL/CircularCRLTwoLevel.java 3. test/jdk/java/security/cert/CertPathValidator/indirectCRL/CircularCRLTwoLevelRevoked.java
6. test/jdk/sun/security/ssl/ClientHandshaker/RSAExport.java 7. test/jdk/javax/net/ssl/ServerName/SSLSocketSNISensitive.java 9. test/jdk/sun/security/ssl/X509TrustManagerImpl/BasicConstraints.java
10. test/jdk/sun/security/ssl/X509TrustManagerImpl/ComodoHacker.java
11. test/jdk/javax/net/ssl/interop/ClientHelloInterOp.java
* test/jdk/javax/net/ssl/interop/ClientHelloBufferUnderflowException.java
* test/jdk/javax/net/ssl/interop/ClientHelloChromeInterOp.java
12. test/jdk/sun/security/rsa/InvalidBitString.java
|
👋 Welcome back myankelevich! A progress list of the required criteria for merging this PR into |
|
@myankelev 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 1036 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. ➡️ To integrate this PR with the above commit message to the |
|
@myankelev The following label will be automatically applied to this pull request:
When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command. |
Webrevs
|
Co-authored-by: Francesco Andreuzzi <andreuzzi.francesco@gmail.com>
| import java.security.Security; | ||
| import java.security.cert.*; | ||
| import java.security.cert.CertPathValidatorException.BasicReason; | ||
| import java.security.cert.CertPathBuilder; |
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.
Did you intentionally list every java.security.cert class used or did the IDE do that? The changes was made with a number of tests and other import paths, but I'm only mentioning it here. Just a suggestion that * looks cleaner.
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.
Just removing all wildcard imports, when I touch the file. Was asked to remove several times before and in general wildcard is not the best practice, as this affect compile time, which is important for jtreg tests.
| * @test | ||
| * @bug 8215790 8219389 | ||
| * @summary Verify exception | ||
| * @enablePreview |
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.
There doesn't look to be any PEM usage in this test
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.
This class extends ClientHelloInterOp, so needs an updated tag.
| * @test | ||
| * @bug 8169362 | ||
| * @summary Interop automated testing with Chrome | ||
| * @enablePreview |
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.
Appears not to need PEM
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.
This class extends ClientHelloInterOp, so needs an updated tag.
| KeyFactory kf = | ||
| KeyFactory.getInstance(keyMaterialKeyAlgs[i]); | ||
| PrivateKey priKey = kf.generatePrivate(priKeySpec); | ||
| String keyMaterialStrPEMFormat = new PEMRecord("PRIVATE KEY", keyMaterialKeys[i]).toString(); |
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.
Should this one be done with JDK-8367326 instead of this PR?
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.
Yes, you're right, I must have missed this one when removing PEMRecord classes from this PR. I'll change it to not use PEMRecord or move it to JDK-8367326
|
@myankelev |
e0be5ea to
a3323da
Compare
|
@myankelev Please do not rebase or force-push to an active PR as it invalidates existing review comments. Note for future reference, the bots always squash all changes into a single commit automatically as part of the integration. See OpenJDK Developers’ Guide for more information. |
|
/help |
|
@myankelev Available commands:
|
|
/label remove build,client,compiler,core-libs,graal,hotspot,i18n,ide-support,javadoc,jmx,net,nio,serviceability,shenandoah |
|
@myankelev The The The The The The The The The The The The The |
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.
Changes look good.
|
@ascarpino Thank you for your review! /integrate |
|
/integrate |
|
Going to push as commit 8d9b2fa.
Your commit was automatically rebased without conflicts. |
|
@myankelev Pushed as commit 8d9b2fa. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Tests changed in this PR:
PEMRecord tests will be done under a subtask JDK-8367326
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/27194/head:pull/27194$ git checkout pull/27194Update a local copy of the PR:
$ git checkout pull/27194$ git pull https://git.openjdk.org/jdk.git pull/27194/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 27194View PR using the GUI difftool:
$ git pr show -t 27194Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/27194.diff
Using Webrev
Link to Webrev Comment