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

AssertionError for SLAProcessResultWorkflowMetricsIndexerTest

    Details

    • Type: Regression Bug
    • Status: Closed
    • Resolution: Duplicate
    • Affects Version/s: Master
    • Fix Version/s: None
    • Component/s: Workflow
    • Labels:

      Description

      Testray Results: https://testray.liferay.com/home/-/testray/case_results/901496786
      Full Jenkins Log: https://testray.liferay.com/reports/production/logs/test-1-1/1575887531683/test-portal-acceptance-upstream-dxp(master)/61/modules-integration-mysql57-jdk11_open/35/jenkins-console.txt.gz

      [exec] com.liferay.portal.workflow.metrics.service.internal.search.index.test.SLAProcessResultWorkflowMetricsIndexerTest > testReindex FAILED
           [exec]     java.lang.AssertionError: workflow-metrics-sla-process-results WorkflowMetricsSLAProcessResultType {"size":0,"query":{"bool":{"must":[{"term":{"deleted":{"value":false}}},{"term":{"companyId":{"value":20096}}},{"term":{"instanceId":{"value":61771}}},{"term":{"processId":{"value":61738}}},{"term":{"slaDefinitionId":{"value":61806}}}]}}} 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.util.BaseWorkflowMetricsTestCase.lambda$retryAssertCount$5(BaseWorkflowMetricsTestCase.java:174)
           [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.util.BaseWorkflowMetricsTestCase.retryAssertCount(BaseWorkflowMetricsTestCase.java:150)
           [exec]     	at com.liferay.portal.workflow.metrics.service.util.BaseWorkflowMetricsIndexerTestCase.assertReindex(BaseWorkflowMetricsIndexerTestCase.java:234)
           [exec]     	at com.liferay.portal.workflow.metrics.service.util.BaseWorkflowMetricsIndexerTestCase.assertReindex(BaseWorkflowMetricsIndexerTestCase.java:251)
           [exec]     	at com.liferay.portal.workflow.metrics.service.internal.search.index.test.SLAProcessResultWorkflowMetricsIndexerTest.testReindex(SLAProcessResultWorkflowMetricsIndexerTest.java:114)
           [exec]     	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           [exec]     	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
           [exec]     	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           [exec]     	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
           [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.base/java.lang.Thread.run(Thread.java:834)
      

        Attachments

          Activity

            People

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

              Dates

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

                Packages

                Version Package