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 2017/10/20 14:39:49 UTC

[sling-org-apache-sling-repoinit-parser] 40/46: SLING-7061 - Access control setup of repository-level permissions (i.e. null path)

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-repoinit-parser.git

commit 5ea5fadbf4efe178ffc7ddffe2f053b2a6984f97
Author: Timothée Maret <tm...@apache.org>
AuthorDate: Tue Sep 19 09:31:40 2017 +0000

    SLING-7061 - Access control setup of repository-level permissions (i.e. null path)
    
    * Add parser tests
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1808849 13f79535-47bb-0310-9956-ffa450edef68
---
 src/test/resources/testcases/test-13-output.txt | 4 ++++
 src/test/resources/testcases/test-13.txt        | 6 ++++++
 2 files changed, 10 insertions(+)

diff --git a/src/test/resources/testcases/test-13-output.txt b/src/test/resources/testcases/test-13-output.txt
new file mode 100644
index 0000000..db4dfb4
--- /dev/null
+++ b/src/test/resources/testcases/test-13-output.txt
@@ -0,0 +1,4 @@
+SetAclPrincipals for user1 user2 
+  AclLine REMOVE_ALL {}
+  AclLine ALLOW {privileges=[jcr:read, jcr:lockManagement]}
+  AclLine DENY {privileges=[jcr:write]}
diff --git a/src/test/resources/testcases/test-13.txt b/src/test/resources/testcases/test-13.txt
new file mode 100644
index 0000000..7a5dc5c
--- /dev/null
+++ b/src/test/resources/testcases/test-13.txt
@@ -0,0 +1,6 @@
+# Test for repository-level ACL (SLING-7061)
+set repository ACL for user1,user2
+    remove *
+    allow jcr:read,jcr:lockManagement
+    deny jcr:write
+end
\ No newline at end of file

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.