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

S3 Store is not verifying updates on a file that does not exist

    Details

      Description

      Executing test suites for S3 Store against a real AWS bucket, then there are two tests that fail:

      com.liferay.portal.store.s3.test.S3StoreTest > testUpdateFileWithNewRepositoryIdNoSuchFileException FAILED
          java.lang.AssertionError: Expected exception: com.liferay.portlet.documentlibrary.NoSuchFileException
      
      com.liferay.portal.store.s3.test.S3StoreTest > testUpdateFileWithNewFileNameNoSuchFileException FAILED
          java.lang.AssertionError: Expected exception: com.liferay.portlet.documentlibrary.NoSuchFileException
      

      Steps to reproduce:

      • Configure portal-ext to use S3:
        dl.store.impl=com.liferay.portal.store.s3.S3Store
        
      • Start portal
      • In your workspace, go to modules/portal-store/portal-store-s3-tests
      • IMPORTANT-TO-SETUP-S3-TESTS-EXECUTION Meanwhile we find a way to provide configuration values on test-time, edit /modules/portal-store/portal-store-s3-test/src/main/java/com/liferay/portal/store/s3/test/activator/configuration/ConfigurationAdminBundleActivator.java, and set up there the credentials for AWS S3.
      • execute
        ../../../gradlew testIntegration

      Expected result: 42 tests completed, 42 passed
      Actual result: 42 tests completed, 2 failed

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              beck.liu Beck Liu
              Reporter:
              manuel.delapenya Manuel de la Peña (Inactive)
              Participants of an Issue:
              Recent user:
              Brian Wulbern
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                5 years, 46 weeks ago

                  Packages

                  Version Package
                  7.0.0 Alpha 3