Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-5915

Fix IT failures in Content Distribution

    XMLWordPrintableJSON

Details

    Description

      Currently there're the following IT failures that we should fix before releasing SDC core 0.2.0.

      Tests run: 13, Failures: 1, Errors: 0, Skipped: 1, Time elapsed: 215.478 sec <<< FAILURE! - in org.apache.sling.distribution.it.DistributionAgentResourcesIntegrationTest
      testAgentConfigurationResourceExtended(org.apache.sling.distribution.it.DistributionAgentResourcesIntegrationTest)  Time elapsed: 100.974 sec  <<< FAILURE!
      java.lang.AssertionError: path /etc/distribution/sample-create-config067f89fb-b059-4fde-84c8-411130681261 doesn't exist
      	at org.junit.Assert.fail(Assert.java:88)
      	at org.junit.Assert.assertTrue(Assert.java:41)
      	at org.apache.sling.distribution.it.DistributionUtils.assertExists(DistributionUtils.java:198)
      	at org.apache.sling.distribution.it.DistributionAgentResourcesIntegrationTest.testAgentConfigurationResourceExtended(DistributionAgentResourcesIntegrationTest.java:174)
      
      Tests run: 4, Failures: 3, Errors: 1, Skipped: 0, Time elapsed: 46.174 sec <<< FAILURE! - in org.apache.sling.distribution.it.MultipleForwardDistributionTest
      testDeleteContent(org.apache.sling.distribution.it.MultipleForwardDistributionTest)  Time elapsed: 9.193 sec  <<< FAILURE!
      java.lang.AssertionError: POST request to http://localhost:59247/libs/sling/distribution/services/agents/publish-multiple/queues/passivequeue1: expecting status 200 expected:<200> but was:<500>
      	at org.junit.Assert.fail(Assert.java:88)
      	at org.junit.Assert.failNotEquals(Assert.java:743)
      	at org.junit.Assert.assertEquals(Assert.java:118)
      	at org.junit.Assert.assertEquals(Assert.java:555)
      	at org.apache.sling.testing.tools.http.RequestExecutor.assertStatus(RequestExecutor.java:155)
      	at org.apache.sling.distribution.it.DistributionUtils.assertPostResourceWithParameters(DistributionUtils.java:96)
      	at org.apache.sling.distribution.it.MultipleForwardDistributionTest.clean(MultipleForwardDistributionTest.java:103)
      
      testAddContentCheckPassiveQueue(org.apache.sling.distribution.it.MultipleForwardDistributionTest)  Time elapsed: 9.197 sec  <<< ERROR!
      org.apache.sling.commons.json.JSONException: JSONObject["items"] not found.
      	at org.apache.sling.commons.json.JSONObject.get(JSONObject.java:372)
      	at org.apache.sling.commons.json.JSONObject.getJSONArray(JSONObject.java:448)
      	at org.apache.sling.distribution.it.MultipleForwardDistributionTest.testAddContentCheckPassiveQueue(MultipleForwardDistributionTest.java:75)
      
      testAddContentCheckPassiveQueue(org.apache.sling.distribution.it.MultipleForwardDistributionTest)  Time elapsed: 9.197 sec  <<< FAILURE!
      java.lang.AssertionError: POST request to http://localhost:59247/libs/sling/distribution/services/agents/publish-multiple/queues/passivequeue1: expecting status 200 expected:<200> but was:<500>
      	at org.junit.Assert.fail(Assert.java:88)
      	at org.junit.Assert.failNotEquals(Assert.java:743)
      	at org.junit.Assert.assertEquals(Assert.java:118)
      	at org.junit.Assert.assertEquals(Assert.java:555)
      	at org.apache.sling.testing.tools.http.RequestExecutor.assertStatus(RequestExecutor.java:155)
      	at org.apache.sling.distribution.it.DistributionUtils.assertPostResourceWithParameters(DistributionUtils.java:96)
      	at org.apache.sling.distribution.it.MultipleForwardDistributionTest.clean(MultipleForwardDistributionTest.java:103)
      
      testAddContent(org.apache.sling.distribution.it.MultipleForwardDistributionTest)  Time elapsed: 9.197 sec  <<< FAILURE!
      java.lang.AssertionError: POST request to http://localhost:59247/libs/sling/distribution/services/agents/publish-multiple/queues/passivequeue1: expecting status 200 expected:<200> but was:<500>
      	at org.junit.Assert.fail(Assert.java:88)
      	at org.junit.Assert.failNotEquals(Assert.java:743)
      	at org.junit.Assert.assertEquals(Assert.java:118)
      	at org.junit.Assert.assertEquals(Assert.java:555)
      	at org.apache.sling.testing.tools.http.RequestExecutor.assertStatus(RequestExecutor.java:155)
      	at org.apache.sling.distribution.it.DistributionUtils.assertPostResourceWithParameters(DistributionUtils.java:96)
      	at org.apache.sling.distribution.it.MultipleForwardDistributionTest.clean(MultipleForwardDistributionTest.java:103)
      
      Running org.apache.sling.distribution.it.MultipleQueueDistributionTest
      Tests run: 3, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 18.963 sec <<< FAILURE! - in org.apache.sling.distribution.it.MultipleQueueDistributionTest
      testDistributeQueues(org.apache.sling.distribution.it.MultipleQueueDistributionTest)  Time elapsed: 0.18 sec  <<< FAILURE!
      junit.framework.AssertionFailedError: expected:<2> but was:<4>
      	at junit.framework.Assert.fail(Assert.java:57)
      	at junit.framework.Assert.failNotEquals(Assert.java:329)
      	at junit.framework.Assert.assertEquals(Assert.java:78)
      	at junit.framework.Assert.assertEquals(Assert.java:234)
      	at junit.framework.Assert.assertEquals(Assert.java:241)
      	at org.apache.sling.distribution.it.MultipleQueueDistributionTest.testDistributeQueues(MultipleQueueDistributionTest.java:72)
      
      testQueues(org.apache.sling.distribution.it.MultipleQueueDistributionTest)  Time elapsed: 0.051 sec  <<< FAILURE!
      junit.framework.AssertionFailedError: expected:<2> but was:<4>
      	at junit.framework.Assert.fail(Assert.java:57)
      	at junit.framework.Assert.failNotEquals(Assert.java:329)
      	at junit.framework.Assert.assertEquals(Assert.java:78)
      	at junit.framework.Assert.assertEquals(Assert.java:234)
      	at junit.framework.Assert.assertEquals(Assert.java:241)
      	at org.apache.sling.distribution.it.MultipleQueueDistributionTest.testQueues(MultipleQueueDistributionTest.java:48)
      
      Tests run: 4, Failures: 3, Errors: 0, Skipped: 0, Time elapsed: 220.433 sec <<< FAILURE! - in org.apache.sling.distribution.it.SelectiveForwardDistributionTest
      testDeleteContent(org.apache.sling.distribution.it.SelectiveForwardDistributionTest)  Time elapsed: 100.907 sec  <<< FAILURE!
      java.lang.AssertionError: path /content/news/forward_del_253090736785822/dc2f58a0-cad0-4d19-8f2c-7143969420ed still exists
      	at org.junit.Assert.fail(Assert.java:88)
      	at org.junit.Assert.assertTrue(Assert.java:41)
      	at org.junit.Assert.assertFalse(Assert.java:64)
      	at org.apache.sling.distribution.it.DistributionUtils.assertNotExists(DistributionUtils.java:206)
      	at org.apache.sling.distribution.it.SelectiveForwardDistributionTest.testDeleteContent(SelectiveForwardDistributionTest.java:73)
      
      testAddContent(org.apache.sling.distribution.it.SelectiveForwardDistributionTest)  Time elapsed: 100.957 sec  <<< FAILURE!
      java.lang.AssertionError: path /content/news/forward_add_253204032183555/c2f0503d-d39f-4f6a-a493-638a6b953b0d doesn't exist
      	at org.junit.Assert.fail(Assert.java:88)
      	at org.junit.Assert.assertTrue(Assert.java:41)
      	at org.apache.sling.distribution.it.DistributionUtils.assertExists(DistributionUtils.java:198)
      	at org.apache.sling.distribution.it.SelectiveForwardDistributionTest.testAddContent(SelectiveForwardDistributionTest.java:58)
      
      testAddContent(org.apache.sling.distribution.it.SelectiveForwardDistributionTest)  Time elapsed: 100.957 sec  <<< FAILURE!
      java.lang.AssertionError: expected:<0> but was:<1>
      	at org.junit.Assert.fail(Assert.java:88)
      	at org.junit.Assert.failNotEquals(Assert.java:743)
      	at org.junit.Assert.assertEquals(Assert.java:118)
      	at org.junit.Assert.assertEquals(Assert.java:555)
      	at org.junit.Assert.assertEquals(Assert.java:542)
      	at org.apache.sling.distribution.it.DistributionUtils.assertEmptyFolder(DistributionUtils.java:300)
      	at org.apache.sling.distribution.it.DistributionIntegrationTestBase.checkNoPackagesLeft(DistributionIntegrationTestBase.java:139)
      	at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:497)
      	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
      	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
      	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:33)
      	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
      	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
      	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
      	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
      	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
      	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
      	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
      	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
      	at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
      	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
      	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
      	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
      
      

      Attachments

        Issue Links

          Activity

            People

              marett Timothee Maret
              teofili Tommaso Teofili
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: