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

ContentStructureResourceTest fails on 7.1.x

    Details

      Description

      Issue found on Gauntlet tester.

      Issue:

      java.lang.AssertionError: expected:<1> but was:<0>
      
      java.lang.AssertionError: {"dateCreated": "2020-11-23T18:55:18Z", "dateModified": "2020-11-23T18:55:18Z", "id": 41986, "name": "bbbm581jssv", "siteId": 41976} does not equal {"availableLanguages": ["en-US"], "contentStructureFields": [{"dataType": "string", "inputControl": "text", "label": "TextFieldNameLabel", "localizable": true, "multiple": false, "name": "MyText", "nestedContentStructureFields": [], "options": [], "predefinedValue": "", "repeatable": false, "required": false, "showLabel": true}], "creator": {"additionalName": "", "contentType": "UserAccount", "familyName": "Test", "givenName": "Test", "id": 20141, "name": "Test Test"}, "dateCreated": "2020-11-23T18:55:18Z", "dateModified": "2020-11-23T18:55:18Z", "description": "", "id": 41981, "name": "aaabpt4pffv", "siteId": 41976}
      

      Full log:

           [exec] com.liferay.headless.delivery.resource.v1_0.test.ContentStructureResourceTest > testGetSiteContentStructuresPageWithFilterStringEquals FAILED
           [exec]     java.lang.AssertionError: 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 org.junit.Assert.assertEquals(Assert.java:631)
           [exec]     	at com.liferay.headless.delivery.resource.v1_0.test.BaseContentStructureResourceTestCase.assertEquals(BaseContentStructureResourceTestCase.java:661)
           [exec]     	at com.liferay.headless.delivery.resource.v1_0.test.BaseContentStructureResourceTestCase.testGetSiteContentStructuresPageWithFilterStringEquals(BaseContentStructureResourceTestCase.java:380)
           [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.BaseTestRule$1.evaluate(BaseTestRule.java:55)
           [exec]     	at com.liferay.portal.kernel.test.rule.BaseTestRule$1.evaluate(BaseTestRule.java:55)
           [exec]     	at com.liferay.portal.kernel.test.rule.BaseTestRule$1.evaluate(BaseTestRule.java:55)
           [exec]     	at com.liferay.portal.kernel.test.rule.BaseTestRule$1.evaluate(BaseTestRule.java:55)
           [exec]     	at com.liferay.portal.kernel.test.rule.BaseTestRule$1.evaluate(BaseTestRule.java:55)
           [exec]     	at com.liferay.portal.kernel.test.rule.BaseTestRule$1.evaluate(BaseTestRule.java:55)
           [exec]     	at com.liferay.portal.kernel.test.rule.BaseTestRule$1.evaluate(BaseTestRule.java:55)
           [exec]     	at com.liferay.portal.kernel.test.rule.BaseTestRule$1.evaluate(BaseTestRule.java:55)
           [exec]     	at com.liferay.portal.kernel.test.rule.BaseTestRule$1.evaluate(BaseTestRule.java:55)
           [exec]     	at com.liferay.portal.test.rule.LiferayIntegrationTestRule$1$1.evaluate(LiferayIntegrationTestRule.java:154)
           [exec]     	at com.liferay.portal.kernel.test.rule.BaseTestRule$1.evaluate(BaseTestRule.java:55)
           [exec]     	at com.liferay.portal.kernel.test.rule.TimeoutTestRule$1.evaluate(TimeoutTestRule.java:89)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:86)
           [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 org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
           [exec]     	at com.liferay.portal.kernel.test.rule.BaseTestRule$2.evaluate(BaseTestRule.java:72)
           [exec]     	at com.liferay.portal.kernel.test.rule.BaseTestRule$2.evaluate(BaseTestRule.java:72)
           [exec]     	at com.liferay.portal.kernel.test.rule.BaseTestRule$2.evaluate(BaseTestRule.java:72)
           [exec]     	at com.liferay.portal.kernel.test.rule.BaseTestRule$2.evaluate(BaseTestRule.java:72)
           [exec]     	at com.liferay.portal.kernel.test.rule.BaseTestRule$2.evaluate(BaseTestRule.java:72)
           [exec]     	at com.liferay.portal.kernel.test.rule.BaseTestRule$2.evaluate(BaseTestRule.java:72)
           [exec]     	at com.liferay.portal.kernel.test.rule.BaseTestRule$2.evaluate(BaseTestRule.java:72)
           [exec]     	at com.liferay.portal.kernel.test.rule.BaseTestRule$2.evaluate(BaseTestRule.java:72)
           [exec]     	at com.liferay.portal.kernel.test.rule.BaseTestRule$2.evaluate(BaseTestRule.java:72)
           [exec]     	at com.liferay.portal.test.rule.LiferayIntegrationTestRule$1$1.evaluate(LiferayIntegrationTestRule.java:154)
           [exec]     	at com.liferay.portal.kernel.test.rule.BaseTestRule$2.evaluate(BaseTestRule.java:72)
           [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)
           [exec] 
           [exec] com.liferay.headless.delivery.resource.v1_0.test.ContentStructureResourceTest > testGetSiteContentStructuresPageWithPagination STARTED
           [exec] 
           [exec] com.liferay.headless.delivery.resource.v1_0.test.ContentStructureResourceTest > testGetSiteContentStructuresPageWithPagination PASSED
           [exec] 
           [exec] com.liferay.headless.delivery.resource.v1_0.test.ContentStructureResourceTest > testGetSiteContentStructuresPageWithSortDateTime STARTED
           [exec] 
           [exec] com.liferay.headless.delivery.resource.v1_0.test.ContentStructureResourceTest > testGetSiteContentStructuresPageWithSortDateTime PASSED
           [exec] 
           [exec] com.liferay.headless.delivery.resource.v1_0.test.ContentStructureResourceTest > testGetSiteContentStructuresPageWithSortInteger STARTED
           [exec] 
           [exec] com.liferay.headless.delivery.resource.v1_0.test.ContentStructureResourceTest > testGetSiteContentStructuresPageWithSortInteger PASSED
           [exec] 
           [exec] com.liferay.headless.delivery.resource.v1_0.test.ContentStructureResourceTest > testGetSiteContentStructuresPageWithSortString STARTED
           [exec] 
           [exec] com.liferay.headless.delivery.resource.v1_0.test.ContentStructureResourceTest > testGetSiteContentStructuresPageWithSortString FAILED
           [exec]     java.lang.AssertionError: {"dateCreated": "2020-11-23T18:55:18Z", "dateModified": "2020-11-23T18:55:18Z", "id": 41986, "name": "bbbm581jssv", "siteId": 41976} does not equal {"availableLanguages": ["en-US"], "contentStructureFields": [{"dataType": "string", "inputControl": "text", "label": "TextFieldNameLabel", "localizable": true, "multiple": false, "name": "MyText", "nestedContentStructureFields": [], "options": [], "predefinedValue": "", "repeatable": false, "required": false, "showLabel": true}], "creator": {"additionalName": "", "contentType": "UserAccount", "familyName": "Test", "givenName": "Test", "id": 20141, "name": "Test Test"}, "dateCreated": "2020-11-23T18:55:18Z", "dateModified": "2020-11-23T18:55:18Z", "description": "", "id": 41981, "name": "aaabpt4pffv", "siteId": 41976}
           [exec]     	at org.junit.Assert.fail(Assert.java:88)
           [exec]     	at org.junit.Assert.assertTrue(Assert.java:41)
           [exec]     	at com.liferay.headless.delivery.resource.v1_0.test.BaseContentStructureResourceTestCase.assertEquals(BaseContentStructureResourceTestCase.java:652)
           [exec]     	at com.liferay.headless.delivery.resource.v1_0.test.BaseContentStructureResourceTestCase.assertEquals(BaseContentStructureResourceTestCase.java:668)
           [exec]     	at com.liferay.headless.delivery.resource.v1_0.test.BaseContentStructureResourceTestCase.testGetSiteContentStructuresPageWithSort(BaseContentStructureResourceTestCase.java:562)
           [exec]     	at com.liferay.headless.delivery.resource.v1_0.test.BaseContentStructureResourceTestCase.testGetSiteContentStructuresPageWithSortString(BaseContentStructureResourceTestCase.java:467)
           [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.BaseTestRule$1.evaluate(BaseTestRule.java:55)
           [exec]     	at com.liferay.portal.kernel.test.rule.BaseTestRule$1.evaluate(BaseTestRule.java:55)
           [exec]     	at com.liferay.portal.kernel.test.rule.BaseTestRule$1.evaluate(BaseTestRule.java:55)
           [exec]     	at com.liferay.portal.kernel.test.rule.BaseTestRule$1.evaluate(BaseTestRule.java:55)
           [exec]     	at com.liferay.portal.kernel.test.rule.BaseTestRule$1.evaluate(BaseTestRule.java:55)
           [exec]     	at com.liferay.portal.kernel.test.rule.BaseTestRule$1.evaluate(BaseTestRule.java:55)
           [exec]     	at com.liferay.portal.kernel.test.rule.BaseTestRule$1.evaluate(BaseTestRule.java:55)
           [exec]     	at com.liferay.portal.kernel.test.rule.BaseTestRule$1.evaluate(BaseTestRule.java:55)
           [exec]     	at com.liferay.portal.kernel.test.rule.BaseTestRule$1.evaluate(BaseTestRule.java:55)
           [exec]     	at com.liferay.portal.test.rule.LiferayIntegrationTestRule$1$1.evaluate(LiferayIntegrationTestRule.java:154)
           [exec]     	at com.liferay.portal.kernel.test.rule.BaseTestRule$1.evaluate(BaseTestRule.java:55)
           [exec]     	at com.liferay.portal.kernel.test.rule.TimeoutTestRule$1.evaluate(TimeoutTestRule.java:89)
           [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:86)
           [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 org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
           [exec]     	at com.liferay.portal.kernel.test.rule.BaseTestRule$2.evaluate(BaseTestRule.java:72)
           [exec]     	at com.liferay.portal.kernel.test.rule.BaseTestRule$2.evaluate(BaseTestRule.java:72)
           [exec]     	at com.liferay.portal.kernel.test.rule.BaseTestRule$2.evaluate(BaseTestRule.java:72)
           [exec]     	at com.liferay.portal.kernel.test.rule.BaseTestRule$2.evaluate(BaseTestRule.java:72)
           [exec]     	at com.liferay.portal.kernel.test.rule.BaseTestRule$2.evaluate(BaseTestRule.java:72)
           [exec]     	at com.liferay.portal.kernel.test.rule.BaseTestRule$2.evaluate(BaseTestRule.java:72)
           [exec]     	at com.liferay.portal.kernel.test.rule.BaseTestRule$2.evaluate(BaseTestRule.java:72)
           [exec]     	at com.liferay.portal.kernel.test.rule.BaseTestRule$2.evaluate(BaseTestRule.java:72)
           [exec]     	at com.liferay.portal.kernel.test.rule.BaseTestRule$2.evaluate(BaseTestRule.java:72)
           [exec]     	at com.liferay.portal.test.rule.LiferayIntegrationTestRule$1$1.evaluate(LiferayIntegrationTestRule.java:154)
           [exec]     	at com.liferay.portal.kernel.test.rule.BaseTestRule$2.evaluate(BaseTestRule.java:72)
           [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

            Assignee:
            brian.chan Brian Chan
            Reporter:
            harry.chai Harry Chai
            Participants of an Issue:
            Recent user:
            Yunlin "Steven" Sun
            Engineering Assignee:
            J├╝rgen Kappler
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              43 weeks ago

                Packages

                Version Package
                7.1.10 DXP FP21
                7.1.X