sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From o...@apache.org
Subject [sling-org-apache-sling-karaf-integration-tests] branch master updated: SLING-6130 Restrict access for principal everyone and move configuration to repoinit
Date Thu, 08 Feb 2018 20:50:53 GMT
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
     new 2f92a46  SLING-6130 Restrict access for principal everyone and move configuration
to repoinit
2f92a46 is described below

commit 2f92a46091b2a4504235d46950b7660cee0b6684
Author: Oliver Lietz <olli@apache.org>
AuthorDate: Thu Feb 8 21:07:51 2018 +0100

    SLING-6130 Restrict access for principal everyone and move configuration to repoinit
    
    * adjust IT
---
 .../karaf/tests/bootstrap/AbstractSlingQuickstartOakTestSupport.java | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/test/java/org/apache/sling/karaf/tests/bootstrap/AbstractSlingQuickstartOakTestSupport.java
b/src/test/java/org/apache/sling/karaf/tests/bootstrap/AbstractSlingQuickstartOakTestSupport.java
index 84b46a2..d9c2cd9 100644
--- a/src/test/java/org/apache/sling/karaf/tests/bootstrap/AbstractSlingQuickstartOakTestSupport.java
+++ b/src/test/java/org/apache/sling/karaf/tests/bootstrap/AbstractSlingQuickstartOakTestSupport.java
@@ -170,16 +170,17 @@ public abstract class AbstractSlingQuickstartOakTestSupport extends
KarafTestSup
         Session s = slingRepository.loginAdministrative(null);
         try {
             final Node root = s.getRootNode();
+            final Node content = root.getNodes("content").nextNode();
             final String name = uniqueName("assertCreateRetrieveNode");
             final String propName = "PN_" + name;
             final String propValue = "PV_" + name;
-            final Node child = nodeType == null ? root.addNode(name) : root.addNode(name,
nodeType);
+            final Node child = nodeType == null ? content.addNode(name) : content.addNode(name,
nodeType);
             child.setProperty(propName, propValue);
             child.setProperty("foo", child.getPath());
             s.save();
             s.logout();
             s = slingRepository.loginAdministrative(null);
-            final Node n = s.getNode("/" + name);
+            final Node n = s.getNode("/content/" + name);
             assertNotNull(n);
             assertEquals(propValue, n.getProperty(propName).getString());
             return n.getPath();

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

Mime
View raw message