zowe / zowe-install-packaging

Packaging repository for the Zowe install scripts and files
Eclipse Public License 2.0
26 stars 52 forks source link

Java 11 Test Cases #3329

Open MarkAckert opened 1 year ago

MarkAckert commented 1 year ago

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:

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

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 commented 1 year ago

@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.

ojcelis commented 9 months ago

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

2023-09-08T18:07:32.1241772Z >>>> Import the Certificate Authority "local_ca" to the keystore "localhost":
2023-09-08T18:07:32.1241887Z 
2023-09-08T18:07:32.1242754Z - 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 
2023-09-08T18:07:32.1243058Z   * keytool failed
2023-09-08T18:07:32.1243169Z 
2023-09-08T18:07:32.1243351Z   * Exit code: 1
2023-09-08T18:07:32.1243462Z 
2023-09-08T18:07:32.1243622Z   * Output:
2023-09-08T18:07:32.1243745Z 
2023-09-08T18:07:32.1244136Z     keytool error: java.lang.Exception: Input not an X.509 certificate
2023-09-08T18:07:32.1244251Z 
2023-09-08T18:07:32.1244599Z     java.lang.Exception: Input not an X.509 certificate
2023-09-08T18:07:32.1244714Z 
2023-09-08T18:07:32.1245180Z         at java.base/sun.security.tools.keytool.Main.addTrustedCert(Main.java:3112)
2023-09-08T18:07:32.1245303Z 
2023-09-08T18:07:32.1245732Z         at java.base/sun.security.tools.keytool.Main.doCommands(Main.java:1210)
2023-09-08T18:07:32.1245852Z 
2023-09-08T18:07:32.1246246Z         at java.base/sun.security.tools.keytool.Main.run(Main.java:416)
2023-09-08T18:07:32.1246360Z 
2023-09-08T18:07:32.1246756Z         at java.base/sun.security.tools.keytool.Main.main(Main.java:409)

PR new test cases: https://github.com/zowe/zowe-install-packaging/pull/3571 @achmelo currently looking into the issue.