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

AssertionError in NodeWorkflowMetricsIndexerTest

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: No Longer Reproducible
    • Affects Version/s: 7.2.X
    • Fix Version/s: None
    • Component/s: Workflow
    • Labels:

      Description

      Jenkins https://testray.liferay.com/reports/production/logs/test-1-1/1578033219213/test-portal-acceptance-upstream-dxp(7.2.x)/102/modules-integration-postgresql10-jdk8/33/jenkins-console.txt.gz

      [exec] com.liferay.portal.workflow.metrics.service.internal.search.index.test.NodeWorkflowMetricsIndexerTest > testAddTaskNode FAILED
           [exec]     java.lang.AssertionError: workflow-metrics-nodes WorkflowMetricsNodeType {"size":0,"query":{"bool":{"must":[{"term":{"companyId":{"value":20102}}},{"term":{"deleted":{"value":false}}},{"term":{"initial":{"value":false}}},{"term":{"name":{"value":"review"}}},{"term":{"nodeId":{"value":86879}}},{"term":{"processId":{"value":86850}}},{"term":{"terminal":{"value":false}}},{"term":{"type":{"value":"TASK"}}},{"term":{"version":{"value":"1.0"}}}]}}} expected:<1> but was:<0>
           [exec]     	at org.junit.Assert.fail(Assert.java:88)
           [exec]     	at org.junit.Assert.failNotEquals(Assert.java:834)
           [exec]     	at org.junit.Assert.assertEquals(Assert.java:645)
           [exec]     	at com.liferay.portal.workflow.metrics.service.test.base.BaseWorkflowMetricsTestCase.lambda$retryAssertCount$2(BaseWorkflowMetricsTestCase.java:131)
           [exec]     	at com.liferay.portal.search.test.util.IdempotentRetryAssert.retryAssert(IdempotentRetryAssert.java:43)
           [exec]     	at com.liferay.portal.search.test.util.IdempotentRetryAssert.retryAssert(IdempotentRetryAssert.java:29)
           [exec]     	at com.liferay.portal.workflow.metrics.service.test.base.BaseWorkflowMetricsTestCase.retryAssertCount(BaseWorkflowMetricsTestCase.java:107)
           [exec]     	at com.liferay.portal.workflow.metrics.service.test.base.BaseWorkflowMetricsTestCase.retryAssertCount(BaseWorkflowMetricsTestCase.java:145)
           [exec]     	at com.liferay.portal.workflow.metrics.service.internal.search.index.test.NodeWorkflowMetricsIndexerTest.testAddTaskNode(NodeWorkflowMetricsIndexerTest.java:93)
           [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$2.evaluate(TestExecutorRunnable.java:234)
           [exec]     	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
           [exec]     	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
           [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.TimeoutTestRule$1.evaluate(TimeoutTestRule.java:89)
           [exec]     	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
           [exec]     	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable$1.evaluate(TestExecutorRunnable.java:143)
           [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:181)
           [exec]     	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable.run(TestExecutorRunnable.java:95)
           [exec]     	at java.lang.Thread.run(Thread.java:745)
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                2 weeks, 1 day ago

                Packages

                Version Package