Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-14065

RESTEasy TS BlacklistedMediaTypeTest (bootable JAR) deployment fails when executed against WildFly 21

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Minor
    • None
    • 21.0.0.Final
    • None
    • None
    • Hide

      1. clone https://github.com/resteasy/Resteasy/tree/3.14

      2. build RESTEasy using a local cache, e.g. -Dmaven.repo.local=/home/test-release-maven-repo:

      $ mvn install -Dmaven.test.skip=true -Dmaven.repo.local=/home/test-release-repo
      

      3. cd to testsuite directory:

      cd testsuite
      

      4. run the bootable JAR execution for the test against WildFly 21 Final:

      $ mvn clean verify -am -pl integration-tests -Dmaven.repo.local=/home/fburzigo/projects/git/resteasy/Resteasy/local-repo-3.14 -Dserver.version=21.0.0.Final -Ddisable.microprofile.tests -Dserver.home=foo -Dts.bootable -Dtestsuite.wildfly.galleon.pack.group.id=org.wildfly -Dversion.org.wildfly.jar.plugin=2.0.2.Final -Dtest=org.jboss.resteasy.test.providers.mediatype.BlacklistedMediaTypeTest
      

      The test should fail with the following stack trace:

      org.jboss.resteasy.test.providers.mediatype.BlacklistedMediaTypeTest Time elapsed: 0.006 sec <<< ERROR!
      org.jboss.arquillian.container.spi.client.container.DeploymentException: 
      Cannot deploy BlacklistedMediaTypeTest.war: {"WFLYCTL0062: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-1" => {"WFLYCTL0080: Failed services" => {"jboss.module.service.\"deployment.BlacklistedMediaTypeTest.war\".main" => "WFLYSRV0179: Failed to load module: deployment.BlacklistedMediaTypeTest.war
       Caused by: org.jboss.modules.ModuleNotFoundException: org.bouncycastle"}}}}
      ... 
      

      Please notice that the test doesn't fail when executed against the standard WildFly 21 Final distribution:

      $ mvn clean verify -am -pl integration-tests -Dmaven.repo.local=/home/fburzigo/projects/git/resteasy/Resteasy/local-repo-3.14 -Dserver.version=21.0.0.Final -Dtest=org.jboss.resteasy.test.providers.mediatype.BlacklistedMediaTypeTest
      

      Here the test should pass:

      -------------------------------------------------------
       T E S T S
      -------------------------------------------------------
      ...
      Running org.jboss.resteasy.test.providers.mediatype.BlacklistedMediaTypeTest
      Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.068 sec - in org.jboss.resteasy.test.providers.mediatype.BlacklistedMediaTypeTest
      
      Results :
      
      Tests run: 9, Failures: 0, Errors: 0, Skipped: 0
      ... 
      
      Show
      1. clone  https://github.com/resteasy/Resteasy/tree/3.14 2. build RESTEasy using a local cache, e.g. -Dmaven.repo.local=/home/test-release-maven-repo: $ mvn install -Dmaven.test.skip= true -Dmaven.repo.local=/home/test-release-repo 3. cd to testsuite directory: cd testsuite 4. run the bootable JAR execution for the test against WildFly 21 Final: $ mvn clean verify -am -pl integration-tests -Dmaven.repo. local =/home/fburzigo/projects/git/resteasy/Resteasy/ local -repo-3.14 -Dserver.version=21.0.0.Final -Ddisable.microprofile.tests -Dserver.home=foo -Dts.bootable -Dtestsuite.wildfly.galleon.pack.group.id=org.wildfly -Dversion.org.wildfly.jar.plugin=2.0.2.Final -Dtest=org.jboss.resteasy.test.providers.mediatype.BlacklistedMediaTypeTest The test should  fail  with the following stack trace: org.jboss.resteasy.test.providers.mediatype.BlacklistedMediaTypeTest Time elapsed: 0.006 sec <<< ERROR! org.jboss.arquillian.container.spi.client.container.DeploymentException: Cannot deploy BlacklistedMediaTypeTest.war: { "WFLYCTL0062: Composite operation failed and was rolled back. Steps that failed:" => { "Operation step-1" => { "WFLYCTL0080: Failed services" => { "jboss.module.service.\" deployment.BlacklistedMediaTypeTest.war\ ".main" => "WFLYSRV0179: Failed to load module: deployment.BlacklistedMediaTypeTest.war Caused by: org.jboss.modules.ModuleNotFoundException: org.bouncycastle"}}}} ...  Please notice that the test doesn't fail when executed against the standard WildFly 21 Final distribution: $ mvn clean verify -am -pl integration-tests -Dmaven.repo.local=/home/fburzigo/projects/git/resteasy/Resteasy/local-repo-3.14 -Dserver.version=21.0.0.Final -Dtest=org.jboss.resteasy.test.providers.mediatype.BlacklistedMediaTypeTest Here the test should pass: ------------------------------------------------------- T E S T S ------------------------------------------------------- ... Running org.jboss.resteasy.test.providers.mediatype.BlacklistedMediaTypeTest Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.068 sec - in org.jboss.resteasy.test.providers.mediatype.BlacklistedMediaTypeTest Results : Tests run: 9, Failures: 0, Errors: 0, Skipped: 0 ... 
    • Hide

      Skip the BlacklistedMediaTypeTest test case when running bootable JAR integration tests.

      Show
      Skip the BlacklistedMediaTypeTest test case when running bootable JAR integration tests.
    • Undefined
    • ---
    • ---

    Description

      This affects executions against WildFly 21 Final, which at the moment depends on RESTEasy 3.13.2.Final.
      The Bouncycastle module definition has just org.bouncycastle which is reflected by: https://github.com/resteasy/Resteasy/blob/3.14/testsuite/integration-tests/src/test/resources/jboss-deployment-structure-bouncycastle.xml
      The mentioned deployment structure is then used by the test: https://github.com/resteasy/Resteasy/blob/3.14/testsuite/integration-tests/src/test/java/org/jboss/resteasy/test/providers/mediatype/BlacklistedMediaTypeTest.java#L85
      which is passing when executed a standard WildFly 21 distribution and instead is failing when executed against the same version provisioned by Galleon.
       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              fburzigo Fabio Burzigotti
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: