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

AssertionError in RedirectNotFoundEntrySearchTest#testSearchBaseModelWithUpdate

    Details

    • Story Points:
      1
    • Fix Priority:
      5
    • Sprint:
      LIMA | QA Sprint 5

      Description

      Full log

      History

      Error:

           [exec]     java.lang.AssertionError: {"from":0,"size":10000,"query":{"bool":{"must":[{"bool":{"must":[{"bool":{"should":[{"bool":{"must":[{"match":{"comments":{"query":"url"}}}],"should":[{"match_phrase":{"comments":{"query":"url","slop":50}}},{"match_phrase":{"comments":{"query":"url","boost":2.0}}}]}},{"bool":{"must":[{"match":{"content":{"query":"url"}}}],"should":[{"match_phrase":{"content":{"query":"url","slop":50}}},{"match_phrase":{"content":{"query":"url","boost":2.0}}}]}},{"bool":{"must":[{"match":{"description":{"query":"url"}}}],"should":[{"match_phrase":{"description":{"query":"url","slop":50}}},{"match_phrase":{"description":{"query":"url","boost":2.0}}}]}},{"bool":{"should":[{"wildcard":{"properties":{"wildcard":"*url*"}}}]}},{"bool":{"must":[{"bool":{"should":[{"match":{"title":{"query":"url"}}},{"match_phrase_prefix":{"title":{"query":"url"}}}]}}],"should":[{"match_phrase":{"title":{"query":"url","boost":2.0}}}]}},{"bool":{"should":[{"match_phrase":{"url":{"query":"url"}}},{"bool":{"should":[{"wildcard":{"url":{"wildcard":"*url*"}}}]}},{"match_phrase_prefix":{"url":{"query":"url","max_expansions":300}}}]}},{"bool":{"should":[{"wildcard":{"userName":{"wildcard":"*url*"}}}]}},{"bool":{"must":[{"match":{"assetCategoryTitles_en_US":{"query":"url"}}}],"should":[{"match_phrase":{"assetCategoryTitles_en_US":{"query":"url","slop":50}}},{"match_phrase":{"assetCategoryTitles_en_US":{"query":"url","boost":2.0}}}]}},{"bool":{"must":[{"bool":{"should":[{"match":{"assetTagNames_en_US":{"query":"url"}}},{"match_phrase_prefix":{"assetTagNames_en_US":{"query":"url"}}}]}}],"should":[{"match_phrase":{"assetTagNames_en_US":{"query":"url","boost":2.0}}}]}},{"bool":{"should":[{"match_phrase":{"url":{"query":"url"}}},{"bool":{"should":[{"wildcard":{"url":{"wildcard":"*url*"}}}]}},{"match_phrase_prefix":{"url":{"query":"url","max_expansions":300}}}]}}]}}]}}],"filter":[{"bool":{"must":[{"bool":{"must":[{"terms":{"groupId":["51994"]}},{"terms":{"scopeGroupId":["51994"]}}]}},{"bool":{"should":[{"bool":{"must":[{"term":{"entryClassName":{"value":"com.liferay.redirect.model.RedirectNotFoundEntry"}}}]}}]}}]}}]}},"explain":false,"stored_fields":["uid","companyId","entryClassPK","entryClassName","groupId","modified"],"track_scores":true,"track_total_hits":2147483647}->[{uid=[com.liferay.redirect.model.RedirectNotFoundEntry_PORTLET_51997], entryClassPK=[51997], companyId=[20100], entryClassName=[com.liferay.redirect.model.RedirectNotFoundEntry], groupId=[51994], modified=[20210111062735]}}, length=1, query=null] expected:<0> but was:<1>
           [exec]     	at org.junit.Assert.fail(Assert.java:89)
           [exec]     	at org.junit.Assert.failNotEquals(Assert.java:835)
           [exec]     	at org.junit.Assert.assertEquals(Assert.java:647)
           [exec]     	at com.liferay.portal.search.test.util.BaseSearchTestCase.assertBaseModelsCount(BaseSearchTestCase.java:269)
           [exec]     	at com.liferay.portal.search.test.util.BaseSearchTestCase.searchBaseModelWithUpdate(BaseSearchTestCase.java:525)
           [exec]     	at com.liferay.portal.search.test.util.BaseSearchTestCase.testSearchBaseModelWithUpdate(BaseSearchTestCase.java:135)
           [exec]     	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           [exec]     	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
           [exec]     	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           [exec]     	at java.lang.reflect.Method.invoke(Method.java:498)
           [exec]     	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable$3.evaluate(TestExecutorRunnable.java:353)
           [exec]     	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
           [exec]     	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
           [exec]     	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable$1.evaluate(TestExecutorRunnable.java:237)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
           [exec]     	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
           [exec]     	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable._execute(TestExecutorRunnable.java:316)
           [exec]     	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable.run(TestExecutorRunnable.java:95)
           [exec]     	at java.lang.Thread.run(Thread.java:745)
      

      Reproduced on master 7f0d8da3d86724c398c4c31f4eee40287fb1f066

        Attachments

          Activity

            People

            Assignee:
            beck.liu Beck Liu
            Reporter:
            beck.liu Beck Liu
            Participants of an Issue:
            Recent user:
            Beck Liu
            Engineering Assignee:
            Adolfo Pérez
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

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

                Packages

                Version Package