This is an automated email from the ASF dual-hosted git repository. bdelacretaz pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-repoinit-parser.git
commit 7bb53c977d861f0f9f75c7b1b6717f23ae4b32fa Author: Bertrand Delacretaz <[email protected]> AuthorDate: Wed Apr 14 12:44:40 2021 +0200 SLING-10304 - add missing tests to test-99 --- .../org/apache/sling/repoinit/parser/test/ParsingErrorsTest.java | 3 +++ src/test/resources/testcases/test-99-output.txt | 7 ++++++- src/test/resources/testcases/test-99.txt | 5 +++++ 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/src/test/java/org/apache/sling/repoinit/parser/test/ParsingErrorsTest.java b/src/test/java/org/apache/sling/repoinit/parser/test/ParsingErrorsTest.java index 554a73f..2b3db6c 100644 --- a/src/test/java/org/apache/sling/repoinit/parser/test/ParsingErrorsTest.java +++ b/src/test/java/org/apache/sling/repoinit/parser/test/ParsingErrorsTest.java @@ -119,6 +119,9 @@ public class ParsingErrorsTest { add(new Object[] { "set properties on /pathA/b \n set {String} to missingPropertyName \n end", ParseException.class }); add(new Object[] { "set properties on /pathA/b \n set somepProp{String} withoutTo \n end", ParseException.class }); add(new Object[] { "set properties on /noPropsFails \n end", ParseException.class }); + + // SLING-6219 - delete user does not support lists + add(new Object[] { "delete user alice,bob", ParseException.class }); }}; return result; } diff --git a/src/test/resources/testcases/test-99-output.txt b/src/test/resources/testcases/test-99-output.txt index f721235..d2f1d46 100644 --- a/src/test/resources/testcases/test-99-output.txt +++ b/src/test/resources/testcases/test-99-output.txt @@ -69,4 +69,9 @@ SetProperties on :authorizable:bob# :authorizable:grpB#/nested PropertyLine default someInteger{Long}=[{Long}42] PropertyLine someFlag{Boolean}=[{Boolean}true] PropertyLine default someDate{Date}=[{GregorianCalendar}2020-03-19T11:39:33.437+05:30] - PropertyLine quotedMix{String}=[{String}quoted, {String}non-quoted, {String}the last " one] \ No newline at end of file + PropertyLine quotedMix{String}=[{String}quoted, {String}non-quoted, {String}the last " one] +DeleteUser userA +DeleteUser userB_listsAreNotSupported +DeleteServiceUser svcA +DeleteServiceUser svcB +DeleteServiceUser svcC \ No newline at end of file diff --git a/src/test/resources/testcases/test-99.txt b/src/test/resources/testcases/test-99.txt index d95637c..262de73 100644 --- a/src/test/resources/testcases/test-99.txt +++ b/src/test/resources/testcases/test-99.txt @@ -129,3 +129,8 @@ set properties on authorizable(bob), authorizable(grpB)/nested set quotedMix to "quoted", non-quoted, "the last \" one" end +# Delete (service) users +delete user userA +delete user userB_listsAreNotSupported +delete service user svcA +delete service user svcB,svcC \ No newline at end of file
