You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2019/10/24 09:05:41 UTC

[sling-org-apache-sling-jcr-repoinit] branch master updated (770919d -> 90b010c)

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

rombert pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-jcr-repoinit.git.


    from 770919d  Use SNAPSHOT deps while release vote is underway
     new edbc629  Move back to released versions
     new 90b010c  SLING-8778 - Missing tests for user/group creation with absolute path

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 pom.xml                                                       |  4 ++--
 .../java/org/apache/sling/jcr/repoinit/CreateGroupsTest.java  | 10 +++++++++-
 .../org/apache/sling/jcr/repoinit/CreateServiceUsersTest.java | 11 ++++++++++-
 .../java/org/apache/sling/jcr/repoinit/CreateUsersTest.java   | 10 +++++++++-
 4 files changed, 30 insertions(+), 5 deletions(-)


[sling-org-apache-sling-jcr-repoinit] 01/02: Move back to released versions

Posted by ro...@apache.org.
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-jcr-repoinit.git

commit edbc6296415b34a0696011d5113eb6759988d3b3
Author: Robert Munteanu <ro...@apache.org>
AuthorDate: Thu Oct 24 10:58:54 2019 +0200

    Move back to released versions
---
 pom.xml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pom.xml b/pom.xml
index 7120259..0f3156f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -176,7 +176,7 @@
         <dependency>
             <groupId>org.apache.sling</groupId>
             <artifactId>org.apache.sling.testing.sling-mock-oak</artifactId>
-            <version>2.1.9-1.16.0-SNAPSHOT</version>
+            <version>2.1.8-1.16.0</version>
             <scope>test</scope>
         </dependency>
         <dependency>
@@ -229,7 +229,7 @@
         <dependency>
             <groupId>org.apache.sling</groupId>
             <artifactId>org.apache.sling.repoinit.parser</artifactId>
-            <version>1.3.1-SNAPSHOT</version>
+            <version>1.3.0</version>
             <scope>provided</scope>
         </dependency>
         <dependency>


[sling-org-apache-sling-jcr-repoinit] 02/02: SLING-8778 - Missing tests for user/group creation with absolute path

Posted by ro...@apache.org.
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-jcr-repoinit.git

commit 90b010c8846c2c899ad57eca87f7ebb621171fc4
Author: Angela Schreiber <an...@apache.org>
AuthorDate: Thu Oct 24 10:57:44 2019 +0200

    SLING-8778 - Missing tests for user/group creation with absolute path
---
 .../java/org/apache/sling/jcr/repoinit/CreateGroupsTest.java  | 10 +++++++++-
 .../org/apache/sling/jcr/repoinit/CreateServiceUsersTest.java | 11 ++++++++++-
 .../java/org/apache/sling/jcr/repoinit/CreateUsersTest.java   | 10 +++++++++-
 3 files changed, 28 insertions(+), 3 deletions(-)

diff --git a/src/test/java/org/apache/sling/jcr/repoinit/CreateGroupsTest.java b/src/test/java/org/apache/sling/jcr/repoinit/CreateGroupsTest.java
index d0adc87..328d4ab 100644
--- a/src/test/java/org/apache/sling/jcr/repoinit/CreateGroupsTest.java
+++ b/src/test/java/org/apache/sling/jcr/repoinit/CreateGroupsTest.java
@@ -61,7 +61,7 @@ public class CreateGroupsTest {
     }
 
     @Test
-    public void createGroupWithPathTest() throws Exception {
+    public void createGroupWithRelativePathTest() throws Exception {
         final String groupId = namePrefix + "_cgwpt";
         final String path = "testgroup/folder_for_" + groupId;
         U.parseAndExecute("create group " + groupId + " with path " + path);
@@ -69,6 +69,14 @@ public class CreateGroupsTest {
     }
 
     @Test
+    public void createGroupWithAbsolutePathTest() throws Exception {
+        final String groupId = namePrefix + "_cgwpt";
+        final String path = "/rep:security/rep:authorizables/rep:groups/testgroup/folder_for_" + groupId;
+        U.parseAndExecute("create group " + groupId + " with path " + path);
+        U.assertGroup("after creating group " + groupId, groupId, true, path);
+    }
+
+    @Test
     public void createGroupMultipleTimes() throws Exception {
         final String groupname = namePrefix + "_cgm";
         U.assertGroup("before test", groupname, false);
diff --git a/src/test/java/org/apache/sling/jcr/repoinit/CreateServiceUsersTest.java b/src/test/java/org/apache/sling/jcr/repoinit/CreateServiceUsersTest.java
index 8d52847..8642ec0 100644
--- a/src/test/java/org/apache/sling/jcr/repoinit/CreateServiceUsersTest.java
+++ b/src/test/java/org/apache/sling/jcr/repoinit/CreateServiceUsersTest.java
@@ -125,7 +125,7 @@ public class CreateServiceUsersTest {
     }
 
     @Test
-    public void createServiceUserWithPathTest() throws Exception {
+    public void createServiceUserWithRelativePathTest() throws Exception {
         final String userId = namePrefix + "_cdst";
         // Oak requires system/ prefix for service users
         final String path = "system/forServiceUser/test";
@@ -133,4 +133,13 @@ public class CreateServiceUsersTest {
         U.parseAndExecute("create service user " + userId + " with path " + path);
         U.assertServiceUser("after creating user", userId, true, path);
     }
+
+    @Test
+    public void createServiceUserWithAbsPathTest() throws Exception {
+        final String userId = namePrefix + "_cdst";
+        final String path = "/rep:security/rep:authorizables/rep:users/system/forServiceUser/test";
+        U.assertServiceUser("at start of test", userId, false);
+        U.parseAndExecute("create service user " + userId + " with path " + path);
+        U.assertServiceUser("after creating user", userId, true, path);
+    }
 }
diff --git a/src/test/java/org/apache/sling/jcr/repoinit/CreateUsersTest.java b/src/test/java/org/apache/sling/jcr/repoinit/CreateUsersTest.java
index e23449f..492dbc5 100644
--- a/src/test/java/org/apache/sling/jcr/repoinit/CreateUsersTest.java
+++ b/src/test/java/org/apache/sling/jcr/repoinit/CreateUsersTest.java
@@ -64,7 +64,7 @@ public class CreateUsersTest {
     }
 
     @Test
-    public void createUserWithPathTest() throws Exception {
+    public void createUserWithRelativePathTest() throws Exception {
         final String userId = namePrefix + "_cuwpt";
         final String path = "testusers/folder_for_" + userId;
         U.parseAndExecute("create user " + userId + " with path " + path);
@@ -72,6 +72,14 @@ public class CreateUsersTest {
     }
 
     @Test
+    public void createUserWithAbsolutePathTest() throws Exception {
+        final String userId = namePrefix + "_cuwpt";
+        final String path = "/rep:security/rep:authorizables/rep:users/testusers/folder_for_" + userId;
+        U.parseAndExecute("create user " + userId + " with path " + path);
+        U.assertUser("after creating user " + userId, userId, true, path);
+    }
+
+    @Test
     public void createUserWithPathAndPasswordTest() throws Exception {
         final String userId = namePrefix + "_cuwpt";
         final String path = "testuserwithpassword/folder_for_" + userId;