You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by bd...@apache.org on 2018/05/04 14:02:47 UTC

[sling-org-apache-sling-launchpad-integration-tests] branch master updated: SLING-7651 - revert unwanted changes to PostToRootTest now that the root cause is fixed

This is an automated email from the ASF dual-hosted git repository.

bdelacretaz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-launchpad-integration-tests.git


The following commit(s) were added to refs/heads/master by this push:
     new 3e74ac3  SLING-7651 - revert unwanted changes to PostToRootTest now that the root cause is fixed
3e74ac3 is described below

commit 3e74ac3a61bf663a28317d868c5f8c60a7169926
Author: Bertrand Delacretaz <bd...@apache.org>
AuthorDate: Fri May 4 16:02:38 2018 +0200

    SLING-7651 - revert unwanted changes to PostToRootTest now that the root cause is fixed
---
 .../webapp/integrationtest/servlets/post/PostToRootTest.java       | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/src/main/java/org/apache/sling/launchpad/webapp/integrationtest/servlets/post/PostToRootTest.java b/src/main/java/org/apache/sling/launchpad/webapp/integrationtest/servlets/post/PostToRootTest.java
index 6ac13a3..34122c4 100644
--- a/src/main/java/org/apache/sling/launchpad/webapp/integrationtest/servlets/post/PostToRootTest.java
+++ b/src/main/java/org/apache/sling/launchpad/webapp/integrationtest/servlets/post/PostToRootTest.java
@@ -28,11 +28,6 @@ public class PostToRootTest extends HttpTestBase {
 			url += "/";
 		}
 
-                // Recent changes cause / to be "magic" at the end of an URL,
-                // we need an extension to be able to set a property on / instead
-                // of creating content under it
-                url += ".json";
-
                 final PostMethod post = new PostMethod(url);
 		final String name = getClass().getSimpleName();
 		final String value = getClass().getSimpleName() + System.currentTimeMillis();
@@ -41,7 +36,7 @@ public class PostToRootTest extends HttpTestBase {
 		final int status = httpClient.executeMethod(post);
 		assertEquals(200, status);
 		
-		final String json = getContent(url, CONTENT_TYPE_JSON);
+		final String json = getContent(url + ".json", CONTENT_TYPE_JSON);
 		assertJavascript(value, json, "out.print(data." + name + ")");
 	}
 }
\ No newline at end of file

-- 
To stop receiving notification emails like this one, please contact
bdelacretaz@apache.org.