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

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

commit 604764a96c3b4f8ee1af78244d86bf5e8e5fe86b
Author: Oliver Lietz <o...@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
o...@apache.org.

Reply via email to