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

[Elasticsearch 6] Failing integration test: com.liferay.asset.publisher.lar.test.AssetPublisherExportImportTest.testExportImportLayoutScopedAssetEntries unexpected result length

    Details

      Description

      After fixing LPS-119146, some integration test failures could be seen in other modules when running ci:test:search. One of them is AssetPublisherExportImportTest.testExportImportLayoutScopeAssetEntries, whose tests fail with a stack trace like this one:

      java.lang.AssertionError: [] expected:<3> but was:<0>
      	at org.junit.Assert.fail(Assert.java:88)
      	at org.junit.Assert.failNotEquals(Assert.java:834)
      	at org.junit.Assert.assertEquals(Assert.java:645)
      	at com.liferay.asset.publisher.lar.test.AssetPublisherExportImportTest.assertAssetEntries(AssetPublisherExportImportTest.java:966)
      	at com.liferay.asset.publisher.lar.test.AssetPublisherExportImportTest.testExportImportAssetEntries(AssetPublisherExportImportTest.java:1199)
      	at com.liferay.asset.publisher.lar.test.AssetPublisherExportImportTest.testExportImportAssetEntries(AssetPublisherExportImportTest.java:1147)
      	at com.liferay.asset.publisher.lar.test.AssetPublisherExportImportTest.testExportImportLayoutScopedAssetEntries(AssetPublisherExportImportTest.java:469)
      	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$2.evaluate(TestExecutorRunnable.java:234)
      	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
      	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      	at com.liferay.portal.kernel.test.rule.BaseTestRule$1.evaluate(BaseTestRule.java:55)
      	at com.liferay.portal.kernel.test.rule.BaseTestRule$1.evaluate(BaseTestRule.java:55)
      	at com.liferay.portal.kernel.test.rule.BaseTestRule$1.evaluate(BaseTestRule.java:55)
      	at com.liferay.portal.kernel.test.rule.BaseTestRule$1.evaluate(BaseTestRule.java:55)
      	at com.liferay.portal.kernel.test.rule.BaseTestRule$1.evaluate(BaseTestRule.java:55)
      	at com.liferay.portal.kernel.test.rule.BaseTestRule$1.evaluate(BaseTestRule.java:55)
      	at com.liferay.portal.kernel.test.rule.BaseTestRule$1.evaluate(BaseTestRule.java:55)
      	at com.liferay.portal.kernel.test.rule.BaseTestRule$1.evaluate(BaseTestRule.java:55)
      	at com.liferay.portal.kernel.test.rule.BaseTestRule$1.evaluate(BaseTestRule.java:55)
      	at com.liferay.portal.test.rule.LiferayIntegrationTestRule$1$1.evaluate(LiferayIntegrationTestRule.java:154)
      	at com.liferay.portal.kernel.test.rule.BaseTestRule$1.evaluate(BaseTestRule.java:55)
      	at com.liferay.portal.kernel.test.rule.TimeoutTestRule$1.evaluate(TimeoutTestRule.java:89)
      	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
      	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable$1.evaluate(TestExecutorRunnable.java:143)
      	at com.liferay.portal.kernel.test.rule.BaseTestRule$2.evaluate(BaseTestRule.java:72)
      	at com.liferay.portal.kernel.test.rule.BaseTestRule$2.evaluate(BaseTestRule.java:72)
      	at com.liferay.portal.kernel.test.rule.BaseTestRule$2.evaluate(BaseTestRule.java:72)
      	at com.liferay.portal.kernel.test.rule.BaseTestRule$2.evaluate(BaseTestRule.java:72)
      	at com.liferay.portal.kernel.test.rule.BaseTestRule$2.evaluate(BaseTestRule.java:72)
      	at com.liferay.portal.kernel.test.rule.BaseTestRule$2.evaluate(BaseTestRule.java:72)
      	at com.liferay.portal.kernel.test.rule.BaseTestRule$2.evaluate(BaseTestRule.java:72)
      	at com.liferay.portal.kernel.test.rule.BaseTestRule$2.evaluate(BaseTestRule.java:72)
      	at com.liferay.portal.kernel.test.rule.BaseTestRule$2.evaluate(BaseTestRule.java:72)
      	at com.liferay.portal.test.rule.LiferayIntegrationTestRule$1$1.evaluate(LiferayIntegrationTestRule.java:154)
      	at com.liferay.portal.kernel.test.rule.BaseTestRule$2.evaluate(BaseTestRule.java:72)
      	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
      	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable._execute(TestExecutorRunnable.java:181)
      	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable.run(TestExecutorRunnable.java:95)
      	at java.lang.Thread.run(Thread.java:745)

      Another is AssetPublisherExportImportTest.testExportImportSeveralScopedAssetEntries, whose tests fail with a stack trace like this one:

      java.lang.AssertionError: [{entryId=42273, groupId=20137, companyId=20100, userId=20141, userName=Test Test, createDate=Wed Sep 09 20:18:54 GMT 2020, modifiedDate=Wed Sep 09 20:18:54 GMT 2020, classNameId=30801, classPK=42262, classUuid=f972d1f5-3992-9502-2a03-2c1a840d392a, classTypeId=42251, listable=true, visible=true, startDate=null, endDate=null, publishDate=Wed Sep 09 20:18:00 GMT 2020, expirationDate=null, mimeType=text/html, title=<?xml version='1.0' encoding='UTF-8'?><root available-locales="en_US,es_ES,de_DE" default-locale="en_US"><Title language-id="en_US">fg185waI</Title><Title language-id="es_ES">fg185waI</Title><Title language-id="de_DE">fg185waI</Title></root>, description=<?xml version='1.0' encoding='UTF-8'?><root available-locales="en_US,es_ES,de_DE" default-locale="en_US"><Description language-id="en_US">fg185waI</Description><Description language-id="es_ES">fg185waI</Description><Description language-id="de_DE">fg185waI</Description></root>, summary=<?xml version='1.0' encoding='UTF-8'?><root available-locales="en_US,es_ES,de_DE" default-locale="en_US"><Description language-id="en_US">fg185waI</Description><Description language-id="es_ES">fg185waI</Description><Description language-id="de_DE">fg185waI</Description></root>, url=, layoutUuid=, height=0, width=0, priority=0.0, viewCount=0}, {entryId=42297, groupId=20137, companyId=20100, userId=20141, userName=Test Test, createDate=Wed Sep 09 20:18:54 GMT 2020, modifiedDate=Wed Sep 09 20:18:54 GMT 2020, classNameId=30801, classPK=42289, classUuid=af6abc0e-ec18-e737-9dbb-e076308e07b2, classTypeId=42278, listable=true, visible=true, startDate=null, endDate=null, publishDate=Wed Sep 09 20:18:00 GMT 2020, expirationDate=null, mimeType=text/html, title=<?xml version='1.0' encoding='UTF-8'?><root available-locales="en_US,es_ES,de_DE" default-locale="en_US"><Title language-id="en_US">n4CMfL7V</Title><Title language-id="es_ES">n4CMfL7V</Title><Title language-id="de_DE">n4CMfL7V</Title></root>, description=<?xml version='1.0' encoding='UTF-8'?><root available-locales="en_US,es_ES,de_DE" default-locale="en_US"><Description language-id="en_US">n4CMfL7V</Description><Description language-id="es_ES">n4CMfL7V</Description><Description language-id="de_DE">n4CMfL7V</Description></root>, summary=<?xml version='1.0' encoding='UTF-8'?><root available-locales="en_US,es_ES,de_DE" default-locale="en_US"><Description language-id="en_US">n4CMfL7V</Description><Description language-id="es_ES">n4CMfL7V</Description><Description language-id="de_DE">n4CMfL7V</Description></root>, url=, layoutUuid=, height=0, width=0, priority=0.0, viewCount=0}, {entryId=42321, groupId=20137, companyId=20100, userId=20141, userName=Test Test, createDate=Wed Sep 09 20:18:54 GMT 2020, modifiedDate=Wed Sep 09 20:18:54 GMT 2020, classNameId=30801, classPK=42313, classUuid=2aa3f9e8-8ecc-0f25-d2a5-9d53da9f634b, classTypeId=42302, listable=true, visible=true, startDate=null, endDate=null, publishDate=Wed Sep 09 20:18:00 GMT 2020, expirationDate=null, mimeType=text/html, title=<?xml version='1.0' encoding='UTF-8'?><root available-locales="en_US,es_ES,de_DE" default-locale="en_US"><Title language-id="en_US">Y5RUdjst</Title><Title language-id="es_ES">Y5RUdjst</Title><Title language-id="de_DE">Y5RUdjst</Title></root>, description=<?xml version='1.0' encoding='UTF-8'?><root available-locales="en_US,es_ES,de_DE" default-locale="en_US"><Description language-id="en_US">Y5RUdjst</Description><Description language-id="es_ES">Y5RUdjst</Description><Description language-id="de_DE">Y5RUdjst</Description></root>, summary=<?xml version='1.0' encoding='UTF-8'?><root available-locales="en_US,es_ES,de_DE" default-locale="en_US"><Description language-id="en_US">Y5RUdjst</Description><Description language-id="es_ES">Y5RUdjst</Description><Description language-id="de_DE">Y5RUdjst</Description></root>, url=, layoutUuid=, height=0, width=0, priority=0.0, viewCount=0}, {entryId=42688, groupId=42222, companyId=20100, userId=20141, userName=Test Test, createDate=Wed Sep 09 20:18:55 GMT 2020, modifiedDate=Wed Sep 09 20:18:55 GMT 2020, classNameId=30801, classPK=42682, classUuid=b125399a-27a2-8af6-f734-825e619b968d, classTypeId=42674, listable=true, visible=true, startDate=null, endDate=null, publishDate=Wed Sep 09 20:18:00 GMT 2020, expirationDate=null, mimeType=text/html, title=<?xml version='1.0' encoding='UTF-8'?><root available-locales="en_US,es_ES,de_DE" default-locale="en_US"><Title language-id="en_US">hEQnhfE4</Title><Title language-id="es_ES">hEQnhfE4</Title><Title language-id="de_DE">hEQnhfE4</Title></root>, description=<?xml version='1.0' encoding='UTF-8'?><root available-locales="en_US,es_ES,de_DE" default-locale="en_US"><Description language-id="en_US">hEQnhfE4</Description><Description language-id="es_ES">hEQnhfE4</Description><Description language-id="de_DE">hEQnhfE4</Description></root>, summary=<?xml version='1.0' encoding='UTF-8'?><root available-locales="en_US,es_ES,de_DE" default-locale="en_US"><Description language-id="en_US">hEQnhfE4</Description><Description language-id="es_ES">hEQnhfE4</Description><Description language-id="de_DE">hEQnhfE4</Description></root>, url=, layoutUuid=, height=0, width=0, priority=0.0, viewCount=0}, {entryId=42669, groupId=42222, companyId=20100, userId=20141, userName=Test Test, createDate=Wed Sep 09 20:18:55 GMT 2020, modifiedDate=Wed Sep 09 20:18:55 GMT 2020, classNameId=30801, classPK=42663, classUuid=ed8349ad-5dfd-0019-89c8-9098ddf47086, classTypeId=42655, listable=true, visible=true, startDate=null, endDate=null, publishDate=Wed Sep 09 20:18:00 GMT 2020, expirationDate=null, mimeType=text/html, title=<?xml version='1.0' encoding='UTF-8'?><root available-locales="en_US,es_ES,de_DE" default-locale="en_US"><Title language-id="en_US">dh91VSFz</Title><Title language-id="es_ES">dh91VSFz</Title><Title language-id="de_DE">dh91VSFz</Title></root>, description=<?xml version='1.0' encoding='UTF-8'?><root available-locales="en_US,es_ES,de_DE" default-locale="en_US"><Description language-id="en_US">dh91VSFz</Description><Description language-id="es_ES">dh91VSFz</Description><Description language-id="de_DE">dh91VSFz</Description></root>, summary=<?xml version='1.0' encoding='UTF-8'?><root available-locales="en_US,es_ES,de_DE" default-locale="en_US"><Description language-id="en_US">dh91VSFz</Description><Description language-id="es_ES">dh91VSFz</Description><Description language-id="de_DE">dh91VSFz</Description></root>, url=, layoutUuid=, height=0, width=0, priority=0.0, viewCount=0}, {entryId=42650, groupId=42222, companyId=20100, userId=20141, userName=Test Test, createDate=Wed Sep 09 20:18:56 GMT 2020, modifiedDate=Wed Sep 09 20:18:56 GMT 2020, classNameId=30801, classPK=42641, classUuid=17cead8c-9458-2313-0063-41a6ed9735ba, classTypeId=42633, listable=true, visible=true, startDate=null, endDate=null, publishDate=Wed Sep 09 20:18:00 GMT 2020, expirationDate=null, mimeType=text/html, title=<?xml version='1.0' encoding='UTF-8'?><root available-locales="en_US,es_ES,de_DE" default-locale="en_US"><Title language-id="en_US">jy2fuaie</Title><Title language-id="es_ES">jy2fuaie</Title><Title language-id="de_DE">jy2fuaie</Title></root>, description=<?xml version='1.0' encoding='UTF-8'?><root available-locales="en_US,es_ES,de_DE" default-locale="en_US"><Description language-id="en_US">jy2fuaie</Description><Description language-id="es_ES">jy2fuaie</Description><Description language-id="de_DE">jy2fuaie</Description></root>, summary=<?xml version='1.0' encoding='UTF-8'?><root available-locales="en_US,es_ES,de_DE" default-locale="en_US"><Description language-id="en_US">jy2fuaie</Description><Description language-id="es_ES">jy2fuaie</Description><Description language-id="de_DE">jy2fuaie</Description></root>, url=, layoutUuid=, height=0, width=0, priority=0.0, viewCount=0}, {entryId=42423, groupId=42236, companyId=20100, userId=20141, userName=Test Test, createDate=Wed Sep 09 20:18:56 GMT 2020, modifiedDate=Wed Sep 09 20:18:56 GMT 2020, classNameId=30801, classPK=42412, classUuid=90a2f025-1d3f-c945-6889-045337438268, classTypeId=42401, listable=true, visible=true, startDate=null, endDate=null, publishDate=Wed Sep 09 20:18:00 GMT 2020, expirationDate=null, mimeType=text/html, title=<?xml version='1.0' encoding='UTF-8'?><root available-locales="en_US,es_ES,de_DE" default-locale="en_US"><Title language-id="en_US">LDG3xAMM</Title><Title language-id="es_ES">LDG3xAMM</Title><Title language-id="de_DE">LDG3xAMM</Title></root>, description=<?xml version='1.0' encoding='UTF-8'?><root available-locales="en_US,es_ES,de_DE" default-locale="en_US"><Description language-id="en_US">LDG3xAMM</Description><Description language-id="es_ES">LDG3xAMM</Description><Description language-id="de_DE">LDG3xAMM</Description></root>, summary=<?xml version='1.0' encoding='UTF-8'?><root available-locales="en_US,es_ES,de_DE" default-locale="en_US"><Description language-id="en_US">LDG3xAMM</Description><Description language-id="es_ES">LDG3xAMM</Description><Description language-id="de_DE">LDG3xAMM</Description></root>, url=, layoutUuid=, height=0, width=0, priority=0.0, viewCount=0}, {entryId=42447, groupId=42236, companyId=20100, userId=20141, userName=Test Test, createDate=Wed Sep 09 20:18:56 GMT 2020, modifiedDate=Wed Sep 09 20:18:56 GMT 2020, classNameId=30801, classPK=42439, classUuid=18037de6-e485-e2d6-757c-47cdeddae3a8, classTypeId=42428, listable=true, visible=true, startDate=null, endDate=null, publishDate=Wed Sep 09 20:18:00 GMT 2020, expirationDate=null, mimeType=text/html, title=<?xml version='1.0' encoding='UTF-8'?><root available-locales="en_US,es_ES,de_DE" default-locale="en_US"><Title language-id="en_US">2ar0m1f2</Title><Title language-id="es_ES">2ar0m1f2</Title><Title language-id="de_DE">2ar0m1f2</Title></root>, description=<?xml version='1.0' encoding='UTF-8'?><root available-locales="en_US,es_ES,de_DE" default-locale="en_US"><Description language-id="en_US">2ar0m1f2</Description><Description language-id="es_ES">2ar0m1f2</Description><Description language-id="de_DE">2ar0m1f2</Description></root>, summary=<?xml version='1.0' encoding='UTF-8'?><root available-locales="en_US,es_ES,de_DE" default-locale="en_US"><Description language-id="en_US">2ar0m1f2</Description><Description language-id="es_ES">2ar0m1f2</Description><Description language-id="de_DE">2ar0m1f2</Description></root>, url=, layoutUuid=, height=0, width=0, priority=0.0, viewCount=0}, {entryId=42471, groupId=42236, companyId=20100, userId=20141, userName=Test Test, createDate=Wed Sep 09 20:18:57 GMT 2020, modifiedDate=Wed Sep 09 20:18:57 GMT 2020, classNameId=30801, classPK=42463, classUuid=bafec20f-1c12-f472-05b1-b02d45bbfab2, classTypeId=42452, listable=true, visible=true, startDate=null, endDate=null, publishDate=Wed Sep 09 20:18:00 GMT 2020, expirationDate=null, mimeType=text/html, title=<?xml version='1.0' encoding='UTF-8'?><root available-locales="en_US,es_ES,de_DE" default-locale="en_US"><Title language-id="en_US">FyDvTvnK</Title><Title language-id="es_ES">FyDvTvnK</Title><Title language-id="de_DE">FyDvTvnK</Title></root>, description=<?xml version='1.0' encoding='UTF-8'?><root available-locales="en_US,es_ES,de_DE" default-locale="en_US"><Description language-id="en_US">FyDvTvnK</Description><Description language-id="es_ES">FyDvTvnK</Description><Description language-id="de_DE">FyDvTvnK</Description></root>, summary=<?xml version='1.0' encoding='UTF-8'?><root available-locales="en_US,es_ES,de_DE" default-locale="en_US"><Description language-id="en_US">FyDvTvnK</Description><Description language-id="es_ES">FyDvTvnK</Description><Description language-id="de_DE">FyDvTvnK</Description></root>, url=, layoutUuid=, height=0, width=0, priority=0.0, viewCount=0}] expected:<15> but was:<9>
      	at org.junit.Assert.fail(Assert.java:88)
      	at org.junit.Assert.failNotEquals(Assert.java:834)
      	at org.junit.Assert.assertEquals(Assert.java:645)
      	at com.liferay.asset.publisher.lar.test.AssetPublisherExportImportTest.assertAssetEntries(AssetPublisherExportImportTest.java:966)
      	at com.liferay.asset.publisher.lar.test.AssetPublisherExportImportTest.testExportImportAssetEntries(AssetPublisherExportImportTest.java:1199)
      	at com.liferay.asset.publisher.lar.test.AssetPublisherExportImportTest.testExportImportSeveralScopedAssetEntries(AssetPublisherExportImportTest.java:501)
      	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$2.evaluate(TestExecutorRunnable.java:234)
      	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
      	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      	at com.liferay.portal.kernel.test.rule.BaseTestRule$1.evaluate(BaseTestRule.java:55)
      	at com.liferay.portal.kernel.test.rule.BaseTestRule$1.evaluate(BaseTestRule.java:55)
      	at com.liferay.portal.kernel.test.rule.BaseTestRule$1.evaluate(BaseTestRule.java:55)
      	at com.liferay.portal.kernel.test.rule.BaseTestRule$1.evaluate(BaseTestRule.java:55)
      	at com.liferay.portal.kernel.test.rule.BaseTestRule$1.evaluate(BaseTestRule.java:55)
      	at com.liferay.portal.kernel.test.rule.BaseTestRule$1.evaluate(BaseTestRule.java:55)
      	at com.liferay.portal.kernel.test.rule.BaseTestRule$1.evaluate(BaseTestRule.java:55)
      	at com.liferay.portal.kernel.test.rule.BaseTestRule$1.evaluate(BaseTestRule.java:55)
      	at com.liferay.portal.kernel.test.rule.BaseTestRule$1.evaluate(BaseTestRule.java:55)
      	at com.liferay.portal.test.rule.LiferayIntegrationTestRule$1$1.evaluate(LiferayIntegrationTestRule.java:154)
      	at com.liferay.portal.kernel.test.rule.BaseTestRule$1.evaluate(BaseTestRule.java:55)
      	at com.liferay.portal.kernel.test.rule.TimeoutTestRule$1.evaluate(TimeoutTestRule.java:89)
      	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
      	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable$1.evaluate(TestExecutorRunnable.java:143)
      	at com.liferay.portal.kernel.test.rule.BaseTestRule$2.evaluate(BaseTestRule.java:72)
      	at com.liferay.portal.kernel.test.rule.BaseTestRule$2.evaluate(BaseTestRule.java:72)
      	at com.liferay.portal.kernel.test.rule.BaseTestRule$2.evaluate(BaseTestRule.java:72)
      	at com.liferay.portal.kernel.test.rule.BaseTestRule$2.evaluate(BaseTestRule.java:72)
      	at com.liferay.portal.kernel.test.rule.BaseTestRule$2.evaluate(BaseTestRule.java:72)
      	at com.liferay.portal.kernel.test.rule.BaseTestRule$2.evaluate(BaseTestRule.java:72)
      	at com.liferay.portal.kernel.test.rule.BaseTestRule$2.evaluate(BaseTestRule.java:72)
      	at com.liferay.portal.kernel.test.rule.BaseTestRule$2.evaluate(BaseTestRule.java:72)
      	at com.liferay.portal.kernel.test.rule.BaseTestRule$2.evaluate(BaseTestRule.java:72)
      	at com.liferay.portal.test.rule.LiferayIntegrationTestRule$1$1.evaluate(LiferayIntegrationTestRule.java:154)
      	at com.liferay.portal.kernel.test.rule.BaseTestRule$2.evaluate(BaseTestRule.java:72)
      	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
      	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable._execute(TestExecutorRunnable.java:181)
      	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable.run(TestExecutorRunnable.java:95)
      	at java.lang.Thread.run(Thread.java:745)

      Links

        Attachments

          Activity

            People

            Assignee:
            andre.oliveira André Ricardo Barreto de Oliveira
            Reporter:
            adam.brandizzi Adam Brandizzi
            Engineering Assignee:
            André Ricardo Barreto de Oliveira
            Recent user:
            André Ricardo Barreto de Oliveira
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved:
              Development End Date:
              Development Start Date:

                Packages

                Version Package