Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-2968

Fix rxjava2 related testing for bootable jar

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 3.15.2.Final
    • 3.15.2.Final
    • None
    • None
    • Hide
      • git checkout 3.15
      • mvn clean install -DskipTests -B -Denforcer.skip
      • mvn clean verify -Dts.bootable -Ddefault=false -Ddisable.microprofile.tests -B -fae -Dmaven.test.failure.ignore=true -f testsuite/pom.xml -Dserver.home=foo -Denforcer.skip -Dtest=Rx2SingleTest
      Show
      git checkout 3.15 mvn clean install -DskipTests -B -Denforcer.skip mvn clean verify -Dts.bootable -Ddefault=false -Ddisable.microprofile.tests -B -fae -Dmaven.test.failure.ignore=true -f testsuite/pom.xml -Dserver.home=foo -Denforcer.skip -Dtest=Rx2SingleTest
    • Undefined

      There are failing about 30 test classes when running integration tests against bootable-jar, because of missing org.jboss.resteasy.resteasy-rxjava2 module

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

      This is caused by doubled includedPackages element of bootable jar Maven configuration: https://github.com/resteasy/Resteasy/blob/3.15/testsuite/integration-tests/pom.xml#L255-L266 Just to second occurrence is taken into account.

              okotek@redhat.com Ondrej Kotek
              okotek@redhat.com Ondrej Kotek
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: