This is an automated email from the ASF dual-hosted git repository.
angela pushed a commit to branch SLING-9692
in repository
https://gitbox.apache.org/repos/asf/sling-org-apache-sling-feature-cpconverter.git
The following commit(s) were added to refs/heads/SLING-9692 by this push:
new 10c2517 SLING-9692 : Add support for principal-based access control
entries (rename test with ace pointing to user-subtree and drop redundant
verification as repo-init-generation fails)
10c2517 is described below
commit 10c25177f97923c18fcd95af5ee808b408798e27
Author: angela <[email protected]>
AuthorDate: Fri Jan 15 11:57:19 2021 +0100
SLING-9692 : Add support for principal-based access control entries (rename
test with ace pointing to user-subtree and drop redundant verification as
repo-init-generation fails)
---
.../handlers/RepPrincipalPolicyEntryHandlerTest.java | 19 ++-----------------
1 file changed, 2 insertions(+), 17 deletions(-)
diff --git
a/src/test/java/org/apache/sling/feature/cpconverter/handlers/RepPrincipalPolicyEntryHandlerTest.java
b/src/test/java/org/apache/sling/feature/cpconverter/handlers/RepPrincipalPolicyEntryHandlerTest.java
index 11dbe1f..46ebd97 100644
---
a/src/test/java/org/apache/sling/feature/cpconverter/handlers/RepPrincipalPolicyEntryHandlerTest.java
+++
b/src/test/java/org/apache/sling/feature/cpconverter/handlers/RepPrincipalPolicyEntryHandlerTest.java
@@ -107,23 +107,8 @@ public final class RepPrincipalPolicyEntryHandlerTest {
}
@Test(expected = IllegalStateException.class)
- public void parseUserHome() throws Exception {
- Extension repoinitExtension = parseAndSetRepoinit("service3",
"random3").getRepoinitExtension();
- assertNotNull(repoinitExtension);
- assertEquals(ExtensionType.TEXT, repoinitExtension.getType());
-
- String expected =
- "create service user service3 with path
/home/users/system/services" + System.lineSeparator() +
- "set principal ACL for service3\n" +
- "allow jcr:all on home(service3)/subtree\n" +
- "end\n";
-
- String actual = repoinitExtension.getText();
- assertEquals(expected, actual);
-
- RepoInitParser repoInitParser = new RepoInitParserService();
- List<Operation> operations = repoInitParser.parse(new
StringReader(actual));
- assertFalse(operations.isEmpty());
+ public void parsePolicyInSubtree() throws Exception {
+ parseAndSetRepoinit("service3", "random3").getRepoinitExtension();
}
@Test