Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-88601 Flaky test in Headless CMS
  3. LPS-88604

Fix flaky test: com.liferay.structured.content.apio.client.test.StructuredContentApioTest > testDeleteStructuredContent

    Details

    • Type: Technical Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Completed
    • Affects Version/s: None
    • Fix Version/s: Master
    • Component/s: Headless CMS
    • Labels:
      None

      Description

      The error found in :apps:headless-apio:structured-content:structured-content-apio-client-test:testIntegration:

      [exec] > Task :apps:headless-apio:structured-content:structured-content-apio-client-test:testIntegration
           [exec] 
           [exec] com.liferay.structured.content.apio.client.test.StructuredContentApioTest > testDeleteStructuredContent FAILED
           [exec]     java.lang.AssertionError: 1 expectation failed.
           [exec]     Expected status code <200> but was <204>.
           [exec]         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
           [exec]         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
           [exec]         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
           [exec]         at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
           [exec]         at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:83)
           [exec]         at org.codehaus.groovy.reflection.CachedConstructor.doConstructorInvoke(CachedConstructor.java:77)
           [exec]         at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrap.callConstructor(ConstructorSite.java:84)
           [exec]         at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:59)
           [exec]         at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:238)
           [exec]         at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:250)
           [exec]         at io.restassured.internal.ResponseSpecificationImpl$HamcrestAssertionClosure.validate(ResponseSpecificationImpl.groovy:483)
           [exec]         at io.restassured.internal.ResponseSpecificationImpl$HamcrestAssertionClosure$validate$1.call(Unknown Source)
           [exec]         at io.restassured.internal.ResponseSpecificationImpl.validateResponseIfRequired(ResponseSpecificationImpl.groovy:655)
           [exec]         at sun.reflect.GeneratedMethodAccessor154.invoke(Unknown Source)
           [exec]         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           [exec]         at java.lang.reflect.Method.invoke(Method.java:498)
           [exec]         at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSiteNoUnwrapNoCoerce.invoke(PogoMetaMethodSite.java:210)
           [exec]         at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:59)
           [exec]         at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:169)
           [exec]         at io.restassured.internal.ResponseSpecificationImpl.statusCode(ResponseSpecificationImpl.groovy:123)
           [exec]         at io.restassured.specification.ResponseSpecification$statusCode$0.callCurrent(Unknown Source)
           [exec]         at io.restassured.internal.ResponseSpecificationImpl.statusCode(ResponseSpecificationImpl.groovy:131)
           [exec]         at io.restassured.internal.ValidatableResponseOptionsImpl.statusCode(ValidatableResponseOptionsImpl.java:119)
           [exec]         at com.liferay.structured.content.apio.client.test.StructuredContentApioTest.testDeleteStructuredContent(StructuredContentApioTest.java:195)
           [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 org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
           [exec]         at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
           [exec]         at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
           [exec]         at org.jboss.arquillian.junit.Arquillian$8$1.invoke(Arquillian.java:370)
           [exec]         at org.jboss.arquillian.container.test.impl.execution.LocalTestExecuter.execute(LocalTestExecuter.java:60)
           [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 org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
           [exec]         at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)
           [exec]         at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)
           [exec]         at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:145)
           [exec]         at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:116)
           [exec]         at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)
           [exec]         at org.jboss.arquillian.container.test.impl.execution.ClientTestExecuter.execute(ClientTestExecuter.java:53)
           [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 org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
           [exec]         at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)
           [exec]         at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)
           [exec]         at org.jboss.arquillian.container.test.impl.client.ContainerEventController.createContext(ContainerEventController.java:142)
           [exec]         at org.jboss.arquillian.container.test.impl.client.ContainerEventController.createTestContext(ContainerEventController.java:129)
           [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 org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
           [exec]         at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
           [exec]         at org.jboss.arquillian.test.impl.TestContextHandler.createTestContext(TestContextHandler.java:130)
           [exec]         at sun.reflect.GeneratedMethodAccessor80.invoke(Unknown Source)
           [exec]         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           [exec]         at java.lang.reflect.Method.invoke(Method.java:498)
           [exec]         at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
           [exec]         at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
           [exec]         at org.jboss.arquillian.test.impl.TestContextHandler.createClassContext(TestContextHandler.java:92)
           [exec]         at sun.reflect.GeneratedMethodAccessor79.invoke(Unknown Source)
           [exec]         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           [exec]         at java.lang.reflect.Method.invoke(Method.java:498)
           [exec]         at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
           [exec]         at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
           [exec]         at org.jboss.arquillian.test.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:73)
           [exec]         at sun.reflect.GeneratedMethodAccessor78.invoke(Unknown Source)
           [exec]         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           [exec]         at java.lang.reflect.Method.invoke(Method.java:498)
           [exec]         at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
           [exec]         at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
           [exec]         at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:145)
           [exec]         at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.test(EventTestRunnerAdaptor.java:136)
           [exec]         at org.jboss.arquillian.junit.Arquillian$8.evaluate(Arquillian.java:363)
           [exec]         at org.jboss.arquillian.junit.Arquillian$4.evaluate(Arquillian.java:245)
           [exec]         at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:422)
           [exec]         at org.jboss.arquillian.junit.Arquillian.access$200(Arquillian.java:54)
           [exec]         at org.jboss.arquillian.junit.Arquillian$5.evaluate(Arquillian.java:259)
           [exec]         at org.jboss.arquillian.junit.Arquillian$7$1.invoke(Arquillian.java:315)
           [exec]         at org.jboss.arquillian.container.test.impl.execution.ClientBeforeAfterLifecycleEventExecuter.execute(ClientBeforeAfterLifecycleEventExecuter.java:99)
           [exec]         at org.jboss.arquillian.container.test.impl.execution.ClientBeforeAfterLifecycleEventExecuter.on(ClientBeforeAfterLifecycleEventExecuter.java:72)
           [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 org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
           [exec]         at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)
           [exec]         at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)
           [exec]         at org.jboss.arquillian.container.test.impl.client.ContainerEventController.createContext(ContainerEventController.java:142)
           [exec]         at org.jboss.arquillian.container.test.impl.client.ContainerEventController.createBeforeContext(ContainerEventController.java:124)
           [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 org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
           [exec]         at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
           [exec]         at org.jboss.arquillian.test.impl.TestContextHandler.createTestContext(TestContextHandler.java:130)
           [exec]         at sun.reflect.GeneratedMethodAccessor80.invoke(Unknown Source)
           [exec]         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           [exec]         at java.lang.reflect.Method.invoke(Method.java:498)
           [exec]         at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
           [exec]         at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
           [exec]         at org.jboss.arquillian.test.impl.TestContextHandler.createClassContext(TestContextHandler.java:92)
           [exec]         at sun.reflect.GeneratedMethodAccessor79.invoke(Unknown Source)
           [exec]         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           [exec]         at java.lang.reflect.Method.invoke(Method.java:498)
           [exec]         at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
           [exec]         at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
           [exec]         at org.jboss.arquillian.test.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:73)
           [exec]         at sun.reflect.GeneratedMethodAccessor78.invoke(Unknown Source)
           [exec]         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           [exec]         at java.lang.reflect.Method.invoke(Method.java:498)
           [exec]         at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
           [exec]         at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
           [exec]         at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:145)
           [exec]         at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:116)
           [exec]         at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.fireCustomLifecycle(EventTestRunnerAdaptor.java:159)
           [exec]         at org.jboss.arquillian.junit.Arquillian$7.evaluate(Arquillian.java:311)
           [exec]         at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
           [exec]         at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
           [exec]         at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
           [exec]         at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
           [exec]         at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
           [exec]         at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
           [exec]         at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
           [exec]         at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
           [exec]         at org.jboss.arquillian.junit.Arquillian$2.evaluate(Arquillian.java:204)
           [exec]         at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:422)
           [exec]         at org.jboss.arquillian.junit.Arquillian.access$200(Arquillian.java:54)
           [exec]         at org.jboss.arquillian.junit.Arquillian$3.evaluate(Arquillian.java:218)
           [exec]         at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
           [exec]         at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:166)
           [exec]         at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.runTestClass(JUnitTestClassExecutor.java:106)
           [exec]         at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.execute(JUnitTestClassExecutor.java:58)
           [exec]         at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.execute(JUnitTestClassExecutor.java:38)
           [exec]         at org.gradle.api.internal.tasks.testing.junit.AbstractJUnitTestClassProcessor.processTestClass(AbstractJUnitTestClassProcessor.java:66)
           [exec]         at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass(SuiteTestClassProcessor.java:51)
           [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 org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
           [exec]         at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
           [exec]         at org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:32)
           [exec]         at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93)
           [exec]         at com.sun.proxy.$Proxy2.processTestClass(Unknown Source)
           [exec]         at org.gradle.api.internal.tasks.testing.worker.TestWorker.processTestClass(TestWorker.java:117)
           [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 org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
           [exec]         at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
           [exec]         at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:155)
           [exec]         at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:137)
           [exec]         at org.gradle.internal.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:404)
           [exec]         at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
           [exec]         at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
           [exec]         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
           [exec]         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
           [exec]         at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
           [exec]         at java.lang.Thread.run(Thread.java:745)
           [exec] 
           [exec] 20:55:44,045 INFO  [RMI TCP Connection(54)-127.0.0.1][BundleStartStopLogger:42] STOPPED com.liferay.structured.content.apio.client.test_1.0.0 [964]
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                brian.chan Brian Chan
                Reporter:
                cristina.gonzalez Cristina Gonzalez
                Recent user:
                Alejandro Hernandez (Inactive)
                Participants of an Issue:
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

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

                  Packages

                  Version Package
                  Master