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

commit 9d87b5c94e6b8fc4b3fb9dc5cb2fbcafb28c857d
Author: Bertrand Delacretaz <[email protected]>
AuthorDate: Thu Oct 31 16:22:41 2019 +0100

    SLING-8740 - readd CND/namespace test from the old ProvisioningModelIT
---
 .../java/org/apache/sling/jcr/repoinit/it/RepoInitTextIT.java     | 8 ++++++++
 src/test/resources/repoinit.txt                                   | 6 ++++++
 2 files changed, 14 insertions(+)

diff --git a/src/test/java/org/apache/sling/jcr/repoinit/it/RepoInitTextIT.java 
b/src/test/java/org/apache/sling/jcr/repoinit/it/RepoInitTextIT.java
index 7127928..395b342 100644
--- a/src/test/java/org/apache/sling/jcr/repoinit/it/RepoInitTextIT.java
+++ b/src/test/java/org/apache/sling/jcr/repoinit/it/RepoInitTextIT.java
@@ -22,6 +22,7 @@ import static org.junit.Assert.assertTrue;
 
 import java.io.InputStream;
 import java.io.InputStreamReader;
+import java.util.UUID;
 
 import javax.inject.Inject;
 import javax.jcr.Session;
@@ -119,4 +120,11 @@ public class RepoInitTextIT extends RepoInitTestSupport {
             }
         };
     }
+
+    @Test
+    public void namespaceAndCndRegistered() throws Exception {
+        final String nodeName = "ns-" + UUID.randomUUID();
+        session.getRootNode().addNode(nodeName, "slingtest:unstructured");
+        session.save();
+    }
 }
\ No newline at end of file
diff --git a/src/test/resources/repoinit.txt b/src/test/resources/repoinit.txt
index de2286a..17d892d 100644
--- a/src/test/resources/repoinit.txt
+++ b/src/test/resources/repoinit.txt
@@ -41,3 +41,9 @@ end
 set ACL on /acltest/A/B
   deny jcr:write for anotherService
 end
+
+register nodetypes
+<<===
+<< <slingtest='http://sling.apache.org/ns/test/repoinit-it/v1.0'>
+<< [slingtest:unstructured] > nt:unstructured
+===>>

Reply via email to