Uploaded image for project: 'WildFly Elytron'
  1. WildFly Elytron
  2. ELY-2781

ElytronXmlParserTest test class fails with Java 17 when the test class in run individually

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.7.0.Alpha1
    • None
    • None
    • None

      The test passes individually on java 11 and passes with the full testsuite from the module on both java 11 and 17, but when run on java 17 using `mvn clean install -Dtest=ElytronXmlParserTest`, the tests fail with the following error: 

      java.lang.IllegalArgumentException: ELY10018: Failed to generate self-signed X.509 certificate
          at org.wildfly.security.x500.cert.SelfSignedX509CertificateAndSigningKey$Builder.build(SelfSignedX509CertificateAndSigningKey.java:404)
          at org.wildfly.security.auth.client.ElytronXmlParserTest.createClientKeyStore(ElytronXmlParserTest.java:79)
          at org.wildfly.security.auth.client.ElytronXmlParserTest.prepareKeyStores(ElytronXmlParserTest.java:212)
      
      ...

      Summary of tests: 

      Results :Tests in error: 
      org.wildfly.security.auth.client.ElytronXmlParserTest.org.wildfly.security.auth.client.ElytronXmlParserTest
        Run 1: ElytronXmlParserTest.prepareKeyStores:212->createClientKeyStore:79 » IllegalArgument
        Run 2: ElytronXmlParserTest.removeProvider:223 Keystore deleted
      Tests run: 1, Failures: 0, Errors: 1, Skipped: 0 

              lvydra Lukas Vydra
              rh-ee-prpaul Prarthona Paul (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: