This is an automated email from the ASF dual-hosted git repository. rombert pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-launchpad-integration-tests.git
commit b213a55b42ecf9ad0b732036877addd7aa1fcaad Author: Robert Munteanu <[email protected]> AuthorDate: Fri Apr 1 17:47:56 2022 +0200 SLING-7935 - Move launchpad-testing module into the main starter repository Make the server root check less strict. We don't want to hardcode the result to /index.html, or to /starter.html by that matter. It should be enough to assert that we redirect to an HTML page. --- .../apache/sling/launchpad/webapp/integrationtest/HttpPingTest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/apache/sling/launchpad/webapp/integrationtest/HttpPingTest.java b/src/main/java/org/apache/sling/launchpad/webapp/integrationtest/HttpPingTest.java index 6fc4059..c99e00a 100644 --- a/src/main/java/org/apache/sling/launchpad/webapp/integrationtest/HttpPingTest.java +++ b/src/main/java/org/apache/sling/launchpad/webapp/integrationtest/HttpPingTest.java @@ -28,7 +28,8 @@ public class HttpPingTest extends HttpTestBase { public void testWebServerRoot() throws Exception { - // by default, the Launchpad default servlet redirects / to index.html + // by default, the Launchpad default servlet redirects / to starter.html + // but we keep it general to be on the safe side final String url = HTTP_BASE_URL + "/"; final GetMethod get = new GetMethod(url); get.setFollowRedirects(false); @@ -36,7 +37,7 @@ public class HttpPingTest extends HttpTestBase { assertEquals("Status must be 302 for " + url, 302, status); final Header h = get.getResponseHeader("Location"); assertNotNull("Location header must be provided",h); - assertTrue("Location header must end with index.html", h.getValue().endsWith("index.html")); + assertTrue("Location header must end with .html", h.getValue().endsWith(".html")); } public void test404() throws Exception
