Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Cannot Reproduce
-
None
-
None
Description
A number of ITs fail, namely:
Tests run: 8, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.086 sec <<< FAILURE! - in org.apache.sling.launchpad.webapp.integrationtest.userManager.CreateUserTest testAnonymousSelfRegistrationDisabled(org.apache.sling.launchpad.webapp.integrationtest.userManager.CreateUserTest) Time elapsed: 0.006 sec <<< FAILURE! junit.framework.AssertionFailedError: expected:<500> but was:<401> 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 junit.framework.TestCase.assertEquals(TestCase.java:409) at org.apache.sling.commons.testing.integration.HttpTestBase.assertPostStatus(HttpTestBase.java:410) at org.apache.sling.launchpad.webapp.integrationtest.userManager.CreateUserTest.testAnonymousSelfRegistrationDisabled(CreateUserTest.java:211)
Running org.apache.sling.launchpad.webapp.integrationtest.login.AuthRequestLoginTest Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.004 sec <<< FAILURE! - in org.apache.sling.launchpad.webapp.integrationtest.login.AuthRequestLoginTest testForcedLogin(org.apache.sling.launchpad.webapp.integrationtest.login.AuthRequestLoginTest) Time elapsed: 0.004 sec <<< FAILURE! junit.framework.AssertionFailedError: Expected status 200 for http://localhost:41000/system/sling/info.sessionInfo.json (content=) expected:<200> but was:<401> 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.TestCase.assertEquals(TestCase.java:401) at org.apache.sling.commons.testing.integration.HttpTestBase.getContent(HttpTestBase.java:457) at org.apache.sling.commons.testing.integration.HttpTestBase.getContent(HttpTestBase.java:432) at org.apache.sling.commons.testing.integration.HttpTestBase.getContent(HttpTestBase.java:424) at org.apache.sling.commons.testing.integration.HttpTestBase.getContent(HttpTestBase.java:419) at org.apache.sling.launchpad.webapp.integrationtest.login.AuthRequestLoginTest.testForcedLogin(AuthRequestLoginTest.java:40) Running org.apache.sling.launchpad.webapp.integrationtest.login.RedirectOnLogoutTest Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.014 sec <<< FAILURE! - in org.apache.sling.launchpad.webapp.integrationtest.login.RedirectOnLogoutTest testRedirectToResourceAfterLogout(org.apache.sling.launchpad.webapp.integrationtest.login.RedirectOnLogoutTest) Time elapsed: 0.014 sec <<< FAILURE! java.lang.AssertionError: Expected redirect expected:<302> but was:<401> at org.junit.Assert.fail(Assert.java:88) at org.junit.Assert.failNotEquals(Assert.java:834) at org.junit.Assert.assertEquals(Assert.java:645) at org.apache.sling.launchpad.webapp.integrationtest.login.RedirectOnLogoutTest.testRedirectToResourceAfterLogout(RedirectOnLogoutTest.java:70) Running org.apache.sling.launchpad.webapp.integrationtest.login.AnonymousAccessTest Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.028 sec <<< FAILURE! - in org.apache.sling.launchpad.webapp.integrationtest.login.AnonymousAccessTest testAnonymousContent(org.apache.sling.launchpad.webapp.integrationtest.login.AnonymousAccessTest) Time elapsed: 0.012 sec <<< FAILURE! junit.framework.AssertionFailedError: Expected status 200 for http://localhost:41000/AnonymousAccessTest/1504552511132/test_text_1504552511.txt (content=) expected:<200> but was:<401> 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.TestCase.assertEquals(TestCase.java:401) at org.apache.sling.commons.testing.integration.HttpTestBase.getContent(HttpTestBase.java:457) at org.apache.sling.commons.testing.integration.HttpTestBase.getContent(HttpTestBase.java:432) at org.apache.sling.commons.testing.integration.HttpTestBase.getContent(HttpTestBase.java:424) at org.apache.sling.commons.testing.integration.HttpTestBase.getContent(HttpTestBase.java:419) at org.apache.sling.launchpad.webapp.integrationtest.login.AnonymousAccessTest.assertContent(AnonymousAccessTest.java:47)
Attachments
Issue Links
- blocks
-
SLING-7046 Run the Sling ITs with Java 9
- Resolved