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

User integration tests failing because test@liferay.com is blacklisted

    Details

      Description

      LPS-84320 introduced blacklisting of email addresses that are configured by default in portal. However, the user integration tests rely on sending emails with the default mail configuration, and consequently are failing.


      Update:
      LPS-101178 solved the issue for CI tests, but it wasn't solved in case you execute integration tests using a Liferay installation with a blacklisted email configured in admin.email.from.address property

      Steps to reproduce

      1. Download Liferay code and execute ant all
      2. Configure built Liferay installation with admin.email.from.address=test@liferay.com in portal-ext.properties
      3. Execute gradlew testIntegration in modules/apps/user/user-test or portal-master/modules/apps/blogs/blogs-test folders:
        • Expected behavior: there aren't any tests failing in mail functionality
        • Wrong behavior: there are some tests failing in mail functionality and following WARN or ERROR traces are printed
          2020-01-02 16:23:21.940 WARN  [com.liferay.user.test-executor-thread][MailMessageListener:135] Email test@liferay.com will be ignored because it is included in mail.send.blacklist
          2020-01-02 16:23:21.942 WARN  [com.liferay.user.test-executor-thread][MailMessageListener:52] Skipping email because the sender is not specified

           

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  26 weeks, 4 days ago

                  Packages

                  Version Package
                  7.0.X
                  7.1.X
                  7.2.X
                  7.3.0 CE GA1
                  Master