Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-5080

KeyStoresTestCase fails on IBM Java 8

XMLWordPrintable

    • Hide
      mvn clean install -DskipTests=true
      cd elytron
      export JAVA_HOME=/home/rmartinc/apps/ibm-java-x86_64-80
      mvn test -Dtest=org.wildfly.extension.elytron.KeyStoresTestCase
      ...
      [INFO] 
      [INFO] Results:
      [INFO] 
      [ERROR] Failures: 
      [ERROR]   KeyStoresTestCase.testImportCertificateChainReply:648->testImportCertificateReply:680 expected: javax.security.auth.x500.X500Principal<O=Root Certificate Authority, EMAILADDRESS=elytron@wildfly.org, C=UK, ST=Elytron, CN=Elytron CA> but was: javax.security.auth.x500.X500Principal<O=Root Certificate Authority, EMAILADDRESS=elytron@wildfly.org, C=UK, ST=Elytron, CN=Elytron CA>
      [ERROR]   KeyStoresTestCase.testImportSingleCertificateReply:642->testImportCertificateReply:680 expected: javax.security.auth.x500.X500Principal<O=Root Certificate Authority, EMAILADDRESS=elytron@wildfly.org, C=UK, ST=Elytron, CN=Elytron CA> but was: javax.security.auth.x500.X500Principal<O=Root Certificate Authority, EMAILADDRESS=elytron@wildfly.org, C=UK, ST=Elytron, CN=Elytron CA>
      [ERROR]   KeyStoresTestCase.testImportTrustedCertificate:777 expected: javax.security.auth.x500.X500Principal<O=Intermediate Certificate Authority, EMAILADDRESS=intermediateca@wildfly.org, C=UK, ST=Elytron, CN=Intermediate Elytron CA> but was: javax.security.auth.x500.X500Principal<O=Intermediate Certificate Authority, EMAILADDRESS=intermediateca@wildfly.org, C=UK, ST=Elytron, CN=Intermediate Elytron CA>
      [ERROR]   KeyStoresTestCase.testImportUntrustedCertificateReplyWithoutValidation:695->testImportUntrustedCertificateReply:742 expected: javax.security.auth.x500.X500Principal<O=Another Root Certificate Authority, EMAILADDRESS=anotherca@wildfly.org, C=UK, ST=Elytron, CN=Another Elytron CA> but was: javax.security.auth.x500.X500Principal<O=Another Root Certificate Authority, EMAILADDRESS=anotherca@wildfly.org, C=UK, ST=Elytron, CN=Another Elytron CA>
      [ERROR]   KeyStoresTestCase.testImportUntrustedCertificateWithoutValidation:791->testImportUntrustedCertificate:828 expected: javax.security.auth.x500.X500Principal<O=Another Root Certificate Authority, EMAILADDRESS=anotherca@wildfly.org, C=UK, ST=Elytron, CN=Another Elytron CA> but was: javax.security.auth.x500.X500Principal<O=Another Root Certificate Authority, EMAILADDRESS=anotherca@wildfly.org, C=UK, ST=Elytron, CN=Another Elytron CA>
      [INFO] 
      [ERROR] Tests run: 29, Failures: 5, Errors: 0, Skipped: 0
      
      Show
      mvn clean install -DskipTests=true cd elytron export JAVA_HOME=/home/rmartinc/apps/ibm-java-x86_64-80 mvn test -Dtest=org.wildfly.extension.elytron.KeyStoresTestCase ... [INFO] [INFO] Results: [INFO] [ERROR] Failures: [ERROR] KeyStoresTestCase.testImportCertificateChainReply:648->testImportCertificateReply:680 expected: javax.security.auth.x500.X500Principal<O=Root Certificate Authority, EMAILADDRESS=elytron@wildfly.org, C=UK, ST=Elytron, CN=Elytron CA> but was: javax.security.auth.x500.X500Principal<O=Root Certificate Authority, EMAILADDRESS=elytron@wildfly.org, C=UK, ST=Elytron, CN=Elytron CA> [ERROR] KeyStoresTestCase.testImportSingleCertificateReply:642->testImportCertificateReply:680 expected: javax.security.auth.x500.X500Principal<O=Root Certificate Authority, EMAILADDRESS=elytron@wildfly.org, C=UK, ST=Elytron, CN=Elytron CA> but was: javax.security.auth.x500.X500Principal<O=Root Certificate Authority, EMAILADDRESS=elytron@wildfly.org, C=UK, ST=Elytron, CN=Elytron CA> [ERROR] KeyStoresTestCase.testImportTrustedCertificate:777 expected: javax.security.auth.x500.X500Principal<O=Intermediate Certificate Authority, EMAILADDRESS=intermediateca@wildfly.org, C=UK, ST=Elytron, CN=Intermediate Elytron CA> but was: javax.security.auth.x500.X500Principal<O=Intermediate Certificate Authority, EMAILADDRESS=intermediateca@wildfly.org, C=UK, ST=Elytron, CN=Intermediate Elytron CA> [ERROR] KeyStoresTestCase.testImportUntrustedCertificateReplyWithoutValidation:695->testImportUntrustedCertificateReply:742 expected: javax.security.auth.x500.X500Principal<O=Another Root Certificate Authority, EMAILADDRESS=anotherca@wildfly.org, C=UK, ST=Elytron, CN=Another Elytron CA> but was: javax.security.auth.x500.X500Principal<O=Another Root Certificate Authority, EMAILADDRESS=anotherca@wildfly.org, C=UK, ST=Elytron, CN=Another Elytron CA> [ERROR] KeyStoresTestCase.testImportUntrustedCertificateWithoutValidation:791->testImportUntrustedCertificate:828 expected: javax.security.auth.x500.X500Principal<O=Another Root Certificate Authority, EMAILADDRESS=anotherca@wildfly.org, C=UK, ST=Elytron, CN=Another Elytron CA> but was: javax.security.auth.x500.X500Principal<O=Another Root Certificate Authority, EMAILADDRESS=anotherca@wildfly.org, C=UK, ST=Elytron, CN=Another Elytron CA> [INFO] [ERROR] Tests run: 29, Failures: 5, Errors: 0, Skipped: 0

      Same issue than WFCORE-5004 but in test case KeyStoresTestCase (inside elytron folder too). It's the same problem with the certificate comparison if using the EMAILADDRESS field. Previously it was hidden by the mock-server issue (WFCORE-5023).

      szaldana I'm assigning it to you, it's just repeating what you did for the previous JIRA but for the new class. If you don't have time or prefer that I do the JIRA just assign it back to me. Thanks a lot!

              rh-ee-szaldana Sonia Zaldana Calles
              rhn-support-rmartinc Ricardo Martin Camarero
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: