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

Some tests use and modify content of module.path which is supposed to be read-only

XMLWordPrintable

    • Hide
      1. mvn clean
      2. cd testsuite
      3. mvn clean install -DskipTests
      4. cd integration/basic
      5. mvn clean test -Dtest=ExtensionTestCase -Dtestsuite.ee.galleon.pack.artifactId=wildfly-galleon-pack -Dts.bootable -Dtestsuite.ee.galleon.pack.version=34.0.0.Final-SNAPSHOT -Dtestsuite.ee.galleon.pack.groupId=org.wildfly -Dversion.org.wildfly.jar.plugin=11.0.2.Final -DtestLogToFile=false

      => the test looks for module.path in SOURCES_ROOT/build/target/wildfly.../modules which doesn't exist.

      Show
      mvn clean cd testsuite mvn clean install -DskipTests cd integration/basic mvn clean test -Dtest=ExtensionTestCase -Dtestsuite.ee.galleon.pack.artifactId=wildfly-galleon-pack -Dts.bootable -Dtestsuite.ee.galleon.pack.version=34.0.0.Final-SNAPSHOT -Dtestsuite.ee.galleon.pack.groupId=org.wildfly -Dversion.org.wildfly.jar.plugin=11.0.2.Final -DtestLogToFile=false => the test looks for module.path in SOURCES_ROOT/build/target/wildfly.../modules which doesn't exist.
    • ---
    • ---

      Some tests read the module.path property and install custom modules there. The path in build module (SOURCES_ROOT/build/target/wildfly.../modules) is outside of the testsuite and it is supposed to be read-only.

      A build of target/wildfly which is shared by all modules.
      Modules and bundles are not copied as they are read-only (see surefire props).

      List of identified tests:

      org.jboss.as.test.integration.management.cli.DeploymentArchiveTestCase
      org.jboss.as.test.integration.jca.classloading.DataSourceTcclDatasourceClassTestCase
      org.jboss.as.test.integration.jca.classloading.DataSourceTcclDriverClassTestCase
      org.jboss.as.test.integration.jca.classloading.DataSourceTcclXADatasourceClassTestCase
      org.jboss.as.test.integration.weld.extensions.cdiportableextensions.ExtensionTestCase
      

      It also means that it is impossible to run tests against a server provisioned by other means (likely bootable) without first building a full server. (jboss.dist seems to be redirected properly)

              msimka@redhat.com Martin Simka
              msimka@redhat.com Martin Simka
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: