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

andysch pushed a commit to branch master
in repository 
https://gitbox.apache.org/repos/asf/sling-org-apache-sling-feature-cpconverter.git


The following commit(s) were added to refs/heads/master by this push:
     new 29fc86a  Extended the Test for Repository Initialzier Failure
29fc86a is described below

commit 29fc86ab206336846fd0af216b5dec9f434477f2
Author: Andreas Schaefer <[email protected]>
AuthorDate: Wed Feb 3 12:08:59 2021 -0800

    Extended the Test for Repository Initialzier Failure
    
    This is for ticket: https://issues.apache.org/jira/browse/SLING-10122
---
 .../cpconverter/handlers/ConfigurationEntryHandlerTest.java       | 8 +++++++-
 ...rg.apache.sling.jcr.repoinit.RepositoryInitializer-test.config | 5 +++++
 2 files changed, 12 insertions(+), 1 deletion(-)

diff --git 
a/src/test/java/org/apache/sling/feature/cpconverter/handlers/ConfigurationEntryHandlerTest.java
 
b/src/test/java/org/apache/sling/feature/cpconverter/handlers/ConfigurationEntryHandlerTest.java
index 6107275..aa629b5 100644
--- 
a/src/test/java/org/apache/sling/feature/cpconverter/handlers/ConfigurationEntryHandlerTest.java
+++ 
b/src/test/java/org/apache/sling/feature/cpconverter/handlers/ConfigurationEntryHandlerTest.java
@@ -66,7 +66,13 @@ public class ConfigurationEntryHandlerTest {
         " create service user test-user2\n" + 
         "    set ACL for test-user2\n" + 
         "        allow    jcr:read    on /conf\n" + 
-        "    end";
+        "    end\n" +
+        " create path /test\n" +
+        "# When replacing = with the plain equals sign will make the test fail 
but this is not applicable if used inside Repository Initializer\n" +
+        "    set properties on /test\n" +
+        "        set testprop to \"one=two\"\n" +
+        "    end"
+        ;
 
     private static final String EXPECTED_TYPED_CONFIG = "{\n" + 
         "  
\"org.apache.sling.serviceusermapping.impl.ServiceUserMapperImpl.typed\":  {\n" 
+ 
diff --git 
a/src/test/resources/org/apache/sling/feature/cpconverter/handlers/jcr_root/apps/asd/config.author/org.apache.sling.jcr.repoinit.RepositoryInitializer-test.config
 
b/src/test/resources/org/apache/sling/feature/cpconverter/handlers/jcr_root/apps/asd/config.author/org.apache.sling.jcr.repoinit.RepositoryInitializer-test.config
index 627a813..ebd7451 100644
--- 
a/src/test/resources/org/apache/sling/feature/cpconverter/handlers/jcr_root/apps/asd/config.author/org.apache.sling.jcr.repoinit.RepositoryInitializer-test.config
+++ 
b/src/test/resources/org/apache/sling/feature/cpconverter/handlers/jcr_root/apps/asd/config.author/org.apache.sling.jcr.repoinit.RepositoryInitializer-test.config
@@ -21,5 +21,10 @@ scripts=[\
     "create service user test-user2
     set ACL for test-user2
         allow    jcr:read    on /conf
+    end",\
+    "create path /test
+# When replacing \= with the plain equals sign will make the test fail but 
this is not applicable if used inside Repository Initializer
+    set properties on /test
+        set testprop to \"one\=two\"
     end"\
 ]
\ No newline at end of file

Reply via email to