Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-129521

User should be able to run modules integration tests using default file path

    Details

    • Type: Task
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      Running an integration test on a fresh compile of liferay portal with all default properties can cause issues due to the default liferay.home file path.

      Steps used to reproduce:

      1. Clear all user properties files
      2. ant setup-profile-dxp
      3. ant all
      4. ant -f build-test.xml prepare-portal-ext-properties - sets liferay home based on default app.server.properties
        liferay.home=/opt/dev/projects/github/liferay-portal/../bundles
        
      1. Start tomcat
      2. cd modules/test/module-dependency-closure-test
      3. gw testIntegration

      Test fails to run due to "/../" used in default path

      com.liferay.module.dependency.closure.test.ModuleSelfContainedDependencyClosureTest > testTestModuleSelfContainedDependencyClosure FAILED
          java.lang.IllegalStateException: Unable to find module /opt/dev/projects/github/liferay-portal/../bundles/osgi/modules/com.liferay.portal.configuration.test.util.jar
              at com.liferay.module.dependency.closure.test.ModuleSelfContainedDependencyClosureTest._getTestBundles(ModuleSelfContainedDependencyClosureTest.java:102)
              at com.liferay.module.dependency.closure.test.ModuleSelfContainedDependencyClosureTest.testTestModuleSelfContainedDependencyClosure(ModuleSelfContainedDependencyClosureTest.java:59)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable$3.evaluate(TestExecutorRunnable.java:353)
              at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable$1.evaluate(TestExecutorRunnable.java:237)
              at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable._execute(TestExecutorRunnable.java:316)
              at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable.run(TestExecutorRunnable.java:95)
              at java.lang.Thread.run(Thread.java:748)
      

        Attachments

          Activity

            People

            Assignee:
            support-lep@liferay.com SE Support
            Reporter:
            victor.ware Victor Ware
            Recent user:
            Victor Ware
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:

                Packages

                Version Package