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

Java 11 Test Cases #3329

Open
MarkAckert opened this issue Mar 16, 2023 · 2 comments
Open

Java 11 Test Cases #3329

MarkAckert opened this issue Mar 16, 2023 · 2 comments
Assignees
Labels
build CI/CD Tasks to improve CI/CD process, not related to install packaging Priority - Medium
Milestone

Comments

@MarkAckert
Copy link
Member

MarkAckert commented Mar 16, 2023

Add Java 11 test cases to the extended test suite, for Zowe v2. Zowe v1 will continue to be tested solely on Java 8.

Proposal:

  • Add Java 11 base test case (install/verify)
  • Add Java 11 keyring test case.
    • Option 1: Run Java 11 keyring test case on all 3 security products
    • Option 2: Run Java 11 keyring on any security product (will likely rotate between all 3 over time).

With the above changes, the following cases are not covered with Java 11:

  • VERIFY_CERTIFICATES
  • External certificate import/verification
  • Infinispan / VSAM Caching
  • Extended install tests (PAX, SMP/e, PSWI, etc. on every system)

When Java 11 eventually becomes the default version for Zowe and Java 8 the configurable version, the coverage will be reversed. Java 11 will run with all test cases, and the above uncovered cases will impact Java 8.

@MarkAckert
Copy link
Member Author

@achmelo Let me know if the plan proposed makes sense - and your preference for option 1 or option 2 with respect to keyring test cases.

@MarkAckert MarkAckert self-assigned this Mar 16, 2023
@MarkAckert MarkAckert added Priority - Medium CI/CD Tasks to improve CI/CD process, not related to install packaging build labels Mar 23, 2023
@MarkAckert MarkAckert added this to the 23Q2 milestone Apr 27, 2023
@MarkAckert MarkAckert modified the milestones: 23Q2, 23Q3 Jul 27, 2023
@ojcelis
Copy link
Contributor

ojcelis commented Sep 13, 2023

Add new test cases for Java 11 but it fails in certificate steps see below.

2023-09-08T18:07:32.1241772Z �[0;31m>>>> Import the Certificate Authority "local_ca" to the keystore "localhost":
2023-09-08T18:07:32.1241887Z �[0m
2023-09-08T18:07:32.1242754Z �[0;31m- Calling keytool -importcert -v -trustcacerts -noprompt -file /ZOWE/tmp/keystore/local_ca/local_ca.cer -alias local_ca -keystore /ZOWE/tmp/keystore/localhost/localhost.keystore.p12 -storepass password -storetype PKCS12
2023-09-08T18:07:32.1242877Z �[0m
2023-09-08T18:07:32.1243058Z �[0;31m  * keytool failed
2023-09-08T18:07:32.1243169Z �[0m
2023-09-08T18:07:32.1243351Z �[0;31m  * Exit code: 1
2023-09-08T18:07:32.1243462Z �[0m
2023-09-08T18:07:32.1243622Z �[0;31m  * Output:
2023-09-08T18:07:32.1243745Z �[0m
2023-09-08T18:07:32.1244136Z �[0;31m    keytool error: java.lang.Exception: Input not an X.509 certificate
2023-09-08T18:07:32.1244251Z �[0m
2023-09-08T18:07:32.1244599Z �[0;31m    java.lang.Exception: Input not an X.509 certificate
2023-09-08T18:07:32.1244714Z �[0m
2023-09-08T18:07:32.1245180Z �[0;31m    	at java.base/sun.security.tools.keytool.Main.addTrustedCert(Main.java:3112)
2023-09-08T18:07:32.1245303Z �[0m
2023-09-08T18:07:32.1245732Z �[0;31m    	at java.base/sun.security.tools.keytool.Main.doCommands(Main.java:1210)
2023-09-08T18:07:32.1245852Z �[0m
2023-09-08T18:07:32.1246246Z �[0;31m    	at java.base/sun.security.tools.keytool.Main.run(Main.java:416)
2023-09-08T18:07:32.1246360Z �[0m
2023-09-08T18:07:32.1246756Z �[0;31m    	at java.base/sun.security.tools.keytool.Main.main(Main.java:409)

PR new test cases: #3571
@achmelo currently looking into the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build CI/CD Tasks to improve CI/CD process, not related to install packaging Priority - Medium
Projects
Status: In Progress
Development

No branches or pull requests

2 participants