[jboss-svn-commits] JBL Code SVN: r35627 - in labs/jbossrules/soa_branches/BRMS-5.1.1/drools-guvnor/src/test/resources: modeshape and 1 other directory.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Wed Oct 20 23:55:06 EDT 2010


Author: kurt.stam at jboss.com
Date: 2010-10-20 23:55:06 -0400 (Wed, 20 Oct 2010)
New Revision: 35627

Added:
   labs/jbossrules/soa_branches/BRMS-5.1.1/drools-guvnor/src/test/resources/modeshape/
   labs/jbossrules/soa_branches/BRMS-5.1.1/drools-guvnor/src/test/resources/modeshape/configuration.xml
   labs/jbossrules/soa_branches/BRMS-5.1.1/drools-guvnor/src/test/resources/modeshape/jaas.conf.xml
   labs/jbossrules/soa_branches/BRMS-5.1.1/drools-guvnor/src/test/resources/modeshape/roles.properties
   labs/jbossrules/soa_branches/BRMS-5.1.1/drools-guvnor/src/test/resources/modeshape/users.properties
Log:
BRMS-406 adding modeshape in memory configuration to run the tests

Added: labs/jbossrules/soa_branches/BRMS-5.1.1/drools-guvnor/src/test/resources/modeshape/configuration.xml
===================================================================
--- labs/jbossrules/soa_branches/BRMS-5.1.1/drools-guvnor/src/test/resources/modeshape/configuration.xml	                        (rev 0)
+++ labs/jbossrules/soa_branches/BRMS-5.1.1/drools-guvnor/src/test/resources/modeshape/configuration.xml	2010-10-21 03:55:06 UTC (rev 35627)
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- 
+  ~ ModeShape (http://www.modeshape.org)
+  ~
+  ~ See the COPYRIGHT.txt file distributed with this work for information
+  ~ regarding copyright ownership.  Some portions may be licensed
+  ~ to Red Hat, Inc. under one or more contributor license agreements.
+  ~ See the AUTHORS.txt file in the distribution for a full listing of 
+  ~ individual contributors.
+  ~
+  ~ ModeShape is free software. Unless otherwise indicated, all code in ModeShape
+  ~ is licensed to you under the terms of the GNU Lesser General Public License as
+  ~ published by the Free Software Foundation; either version 2.1 of
+  ~ the License, or (at your option) any later version.
+  ~
+  ~ ModeShape is distributed in the hope that it will be useful,
+  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+  ~ or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License
+  ~ for more details.
+  ~
+  ~ You should have received a copy of the GNU Lesser General Public License
+  ~ along with this distribution; if not, write to:
+  ~ Free Software Foundation, Inc.
+  ~ 51 Franklin Street, Fifth Floor
+  ~ Boston, MA  02110-1301  USA
+  -->
+<configuration xmlns:mode="http://www.modeshape.org/1.0"
+               xmlns:jcr="http://www.jcp.org/jcr/1.0"
+               xmlns:nt="http://www.jcp.org/jcr/nt/1.0">
+    <!-- Define the sources from which content is made available.  -->
+    <mode:sources jcr:primaryType="nt:unstructured">
+        <mode:source jcr:name="TransientSource" mode:classname="org.modeshape.graph.connector.inmemory.InMemoryRepositorySource"/>
+    </mode:sources>
+    <!-- JCR Repositories.  This is required, with a separate repository for each JCR repository instance. -->
+    <mode:repositories>
+        <mode:repository jcr:name="Guvnor JCR Repository" mode:source="TransientSource">
+            <mode:options>
+                <mode:option jcr:name="queryIndexesUpdatedSynchronously" mode:value="true"/>
+            </mode:options>
+        </mode:repository>
+    </mode:repositories>
+</configuration>

Added: labs/jbossrules/soa_branches/BRMS-5.1.1/drools-guvnor/src/test/resources/modeshape/jaas.conf.xml
===================================================================
--- labs/jbossrules/soa_branches/BRMS-5.1.1/drools-guvnor/src/test/resources/modeshape/jaas.conf.xml	                        (rev 0)
+++ labs/jbossrules/soa_branches/BRMS-5.1.1/drools-guvnor/src/test/resources/modeshape/jaas.conf.xml	2010-10-21 03:55:06 UTC (rev 35627)
@@ -0,0 +1,18 @@
+<?xml version='1.0'?>
+
+<policy xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+        xsi:schemaLocation="urn:jboss:security-config:5.0" xmlns="urn:jboss:security-config:5.0"
+        xmlns:jbxb="urn:jboss:security-config:5.0">
+        <application-policy name="modeshape-jcr">
+                <authentication>
+                        <login-module code="org.jboss.security.auth.spi.UsersRolesLoginModule" flag="required">
+                <module-option name="usersProperties">modeshape/users.properties</module-option>
+                <module-option name="rolesProperties">modeshape/roles.properties</module-option>
+                                <module-option name="name">1.1</module-option>
+                                <module-option name="succeed">true</module-option>
+                                <module-option name="throwEx">false</module-option>
+                        </login-module>
+                </authentication>        
+        </application-policy>
+</policy>
+                
\ No newline at end of file

Added: labs/jbossrules/soa_branches/BRMS-5.1.1/drools-guvnor/src/test/resources/modeshape/roles.properties
===================================================================
--- labs/jbossrules/soa_branches/BRMS-5.1.1/drools-guvnor/src/test/resources/modeshape/roles.properties	                        (rev 0)
+++ labs/jbossrules/soa_branches/BRMS-5.1.1/drools-guvnor/src/test/resources/modeshape/roles.properties	2010-10-21 03:55:06 UTC (rev 35627)
@@ -0,0 +1,4 @@
+alan_parsons=admin
+ADMINISTRATOR=admin
+fdd=readwrite
+thirdpartyuser=readwrite

Added: labs/jbossrules/soa_branches/BRMS-5.1.1/drools-guvnor/src/test/resources/modeshape/users.properties
===================================================================
--- labs/jbossrules/soa_branches/BRMS-5.1.1/drools-guvnor/src/test/resources/modeshape/users.properties	                        (rev 0)
+++ labs/jbossrules/soa_branches/BRMS-5.1.1/drools-guvnor/src/test/resources/modeshape/users.properties	2010-10-21 03:55:06 UTC (rev 35627)
@@ -0,0 +1,4 @@
+alan_parsons=password
+ADMINISTRATOR=password
+fdd=password
+thirdpartyuser=password



More information about the jboss-svn-commits mailing list