]> source.dussan.org Git - archiva.git/commitdiff
use an artifact with test resources from redback to avoid too much file duplication...
authorOlivier Lamy <olamy@apache.org>
Thu, 3 Nov 2011 23:46:59 +0000 (23:46 +0000)
committerOlivier Lamy <olamy@apache.org>
Thu, 3 Nov 2011 23:46:59 +0000 (23:46 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1197359 13f79535-47bb-0310-9956-ffa450edef68

14 files changed:
archiva-modules/archiva-base/archiva-indexer/pom.xml
archiva-modules/archiva-base/archiva-indexer/src/test/resources/META-INF/redback/redback-core.xml [deleted file]
archiva-modules/archiva-base/archiva-proxy/pom.xml
archiva-modules/archiva-base/archiva-proxy/src/test/resources/META-INF/redback/redback-core.xml [deleted file]
archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/pom.xml
archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/test/resources/META-INF/redback/redback-core.xml [deleted file]
archiva-modules/archiva-scheduler/archiva-scheduler-indexing/pom.xml
archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/test/resources/META-INF/redback/redback-core.xml [deleted file]
archiva-modules/archiva-web/archiva-security/pom.xml
archiva-modules/archiva-web/archiva-security/src/test/resources/META-INF/redback/redback-core.xml [deleted file]
archiva-modules/archiva-web/archiva-xmlrpc/archiva-xmlrpc-security/pom.xml
archiva-modules/archiva-web/archiva-xmlrpc/archiva-xmlrpc-security/src/test/resources/META-INF/redback/redback-core.xml [deleted file]
archiva-modules/archiva-web/archiva-xmlrpc/archiva-xmlrpc-services/pom.xml
archiva-modules/archiva-web/archiva-xmlrpc/archiva-xmlrpc-services/src/test/resources/META-INF/redback/redback-core.xml [deleted file]

index c8ce37ab97890423df9d40f5869ec9974909c3d7..2c1d6c1d2b9be54cbcd8a321644b40adafe26b43 100644 (file)
       <artifactId>redback-users-memory</artifactId>
       <scope>test</scope>
     </dependency>
+    <dependency>
+      <groupId>org.codehaus.redback</groupId>
+      <artifactId>redback-common-test-resources</artifactId>
+      <scope>test</scope>
+    </dependency>
   </dependencies>
   <build>
     <pluginManagement>
diff --git a/archiva-modules/archiva-base/archiva-indexer/src/test/resources/META-INF/redback/redback-core.xml b/archiva-modules/archiva-base/archiva-indexer/src/test/resources/META-INF/redback/redback-core.xml
deleted file mode 100644 (file)
index 751ac5c..0000000
+++ /dev/null
@@ -1,247 +0,0 @@
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~   http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-
-<redback-role-model>
-  <modelVersion>1.0.0</modelVersion>
-  <applications>
-    <application>
-      <id>System</id>
-      <description>Roles that apply system-wide, across all of the applications</description>
-      <version>1.0.0</version>
-      <resources>
-        <resource>
-          <id>global</id>
-          <name>*</name>
-          <permanent>true</permanent>
-          <description>global resource implies full access for authorization</description>
-        </resource>
-        <resource>
-          <id>username</id>
-          <name>${username}</name>
-          <permanent>true</permanent>
-          <description>replaced with the username of the principal at authorization check time</description>
-        </resource>
-      </resources>
-      <operations>
-        <operation>
-          <id>configuration-edit</id>
-          <name>configuration-edit</name>
-          <description>edit configuration</description>
-          <permanent>true</permanent>
-        </operation>
-        <operation>
-          <id>user-management-user-create</id>
-          <name>user-management-user-create</name>
-          <description>create user</description>
-          <permanent>true</permanent>
-        </operation>
-        <operation>
-          <id>user-management-user-edit</id>
-          <name>user-management-user-edit</name>
-          <description>edit user</description>
-          <permanent>true</permanent>
-        </operation>
-        <operation>
-          <id>user-management-user-role</id>
-          <name>user-management-user-role</name>
-          <description>user roles</description>
-          <permanent>true</permanent>
-        </operation>
-        <operation>
-          <id>user-management-user-delete</id>
-          <name>user-management-user-delete</name>
-          <description>delete user</description>
-          <permanent>true</permanent>
-        </operation>
-        <operation>
-          <id>user-management-user-list</id>
-          <name>user-management-user-list</name>
-          <description>list users</description>
-          <permanent>true</permanent>
-        </operation>
-        <operation>
-          <id>user-management-role-grant</id>
-          <name>user-management-role-grant</name>
-          <description>grant role</description>
-          <permanent>true</permanent>
-        </operation>
-        <operation>
-          <id>user-management-role-drop</id>
-          <name>user-management-role-drop</name>
-          <description>drop role</description>
-          <permanent>true</permanent>
-        </operation>
-        <operation>
-          <id>user-management-rbac-admin</id>
-          <name>user-management-rbac-admin</name>
-          <description>administer rbac</description>
-          <permanent>true</permanent>
-        </operation>
-        <operation>
-          <id>guest-access</id>
-          <name>guest-access</name>
-          <description>access guest</description>
-          <permanent>true</permanent>
-        </operation>
-        <operation>
-          <id>user-management-manage-data</id>
-          <name>user-management-manage-data</name>
-          <description>manage data</description>
-          <permanent>true</permanent>
-        </operation>
-      </operations>
-      <roles>
-        <role>
-          <id>system-administrator</id>
-          <name>System Administrator</name>
-          <permanent>true</permanent>
-          <assignable>true</assignable>
-          <permissions>
-            <permission>
-              <id>edit-redback-configuration</id>
-              <name>Edit Redback Configuration</name>
-              <operation>configuration-edit</operation>
-              <resource>global</resource>
-              <permanent>true</permanent>
-            </permission>
-            <permission>
-              <id>manage-rbac-setup</id>
-              <name>User RBAC Management</name>
-              <operation>user-management-rbac-admin</operation>
-              <resource>global</resource>
-              <permanent>true</permanent>
-            </permission>
-            <permission>
-              <id>manage-rbac-data</id>
-              <name>RBAC Manage Data</name>
-              <operation>user-management-manage-data</operation>
-              <resource>global</resource>
-              <permanent>true</permanent>
-            </permission>
-          </permissions>
-          <childRoles>
-            <childRole>user-administrator</childRole>
-          </childRoles>
-        </role>
-        <role>
-          <id>user-administrator</id>
-          <name>User Administrator</name>
-          <permanent>true</permanent>
-          <assignable>true</assignable>
-          <permissions>
-            <permission>
-              <id>drop-roles-for-anyone</id>
-              <name>Drop Roles for Anyone</name>
-              <operation>user-management-role-drop</operation>
-              <resource>global</resource>
-              <permanent>true</permanent>
-            </permission>
-            <permission>
-              <id>grant-roles-for-anyone</id>
-              <name>Grant Roles for Anyone</name>
-              <operation>user-management-role-grant</operation>
-              <resource>global</resource>
-              <permanent>true</permanent>
-            </permission>
-            <permission>
-              <id>user-create</id>
-              <name>Create Users</name>
-              <operation>user-management-user-create</operation>
-              <resource>global</resource>
-              <permanent>true</permanent>
-            </permission>
-            <permission>
-              <id>user-delete</id>
-              <name>Delete Users</name>
-              <operation>user-management-user-delete</operation>
-              <resource>global</resource>
-              <permanent>true</permanent>
-            </permission>
-            <permission>
-              <id>user-edit</id>
-              <name>Edit Users</name>
-              <operation>user-management-user-edit</operation>
-              <resource>global</resource>
-              <permanent>true</permanent>
-            </permission>
-            <permission>
-              <id>access-users-roles</id>
-              <name>Access Users Roles</name>
-              <operation>user-management-user-role</operation>
-              <resource>global</resource>
-              <permanent>true</permanent>
-            </permission>
-            <permission>
-              <id>access-user-list</id>
-              <name>Access User List</name>
-              <operation>user-management-user-list</operation>
-              <resource>global</resource>
-              <permanent>true</permanent>
-            </permission>
-          </permissions>
-        </role>
-        <role>
-          <id>edit-users-list</id>
-          <name>edit users list</name>
-          <permanent>true</permanent>
-          <assignable>true</assignable>
-          <permissions>
-            <permission>
-              <id>access-user-list</id>
-              <name>Access User List</name>
-              <operation>user-management-user-list</operation>
-              <resource>global</resource>
-              <permanent>true</permanent>
-            </permission>
-          </permissions>
-        </role>
-        <role>
-          <id>registered-user</id>
-          <name>Registered User</name>
-          <permanent>true</permanent>
-          <assignable>true</assignable>
-          <permissions>
-            <permission>
-              <id>edit-user-by-username</id>
-              <name>Edit User Data by Username</name>
-              <operation>user-management-user-edit</operation>
-              <resource>username</resource>
-              <permanent>true</permanent>
-            </permission>
-          </permissions>
-        </role>
-        <role>
-          <id>guest</id>
-          <name>Guest</name>
-          <permanent>true</permanent>
-          <assignable>true</assignable>
-          <permissions>
-            <permission>
-              <id>guest-permission</id>
-              <name>Guest Permission</name>
-              <operation>guest-access</operation>
-              <resource>global</resource>
-              <permanent>true</permanent>
-            </permission>
-          </permissions>
-        </role>
-      </roles>
-    </application>
-  </applications>
-</redback-role-model>
\ No newline at end of file
index 821197654d2e3a91e4f3db7b71bb54b75c14a1b9..25c9d5fabf1288b12bb05e32dae20d76c4a0cf85 100644 (file)
       <groupId>org.apache.archiva</groupId>
       <artifactId>archiva-security-common</artifactId>
     </dependency>
+    <dependency>
+      <groupId>org.codehaus.redback</groupId>
+      <artifactId>redback-common-test-resources</artifactId>
+      <scope>test</scope>
+    </dependency>
   </dependencies>
   <build>
     <plugins>
diff --git a/archiva-modules/archiva-base/archiva-proxy/src/test/resources/META-INF/redback/redback-core.xml b/archiva-modules/archiva-base/archiva-proxy/src/test/resources/META-INF/redback/redback-core.xml
deleted file mode 100644 (file)
index c74e47d..0000000
+++ /dev/null
@@ -1,232 +0,0 @@
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~   http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-
-<redback-role-model>
-    <modelVersion>1.0.0</modelVersion>
-    <applications>
-        <application>
-          <id>System</id>
-          <description>Roles that apply system-wide, across all of the applications</description>
-        <version>1.0.0</version>
-        <resources>
-            <resource>
-                <id>global</id>
-                <name>*</name>
-                <permanent>true</permanent>
-                <description>global resource implies full access for authorization</description>
-            </resource>
-            <resource>
-                <id>username</id>
-                <name>${username}</name>
-                <permanent>true</permanent>
-                <description>replaced with the username of the principal at authorization check time</description>
-            </resource>
-        </resources>
-        <operations>
-            <operation>
-                <id>configuration-edit</id>
-                <name>configuration-edit</name>
-                <description>edit configuration</description>
-                <permanent>true</permanent>
-            </operation>
-            <operation>
-                <id>user-management-user-create</id>
-                <name>user-management-user-create</name>
-                <description>create user</description>
-                <permanent>true</permanent>
-            </operation>
-            <operation>
-                <id>user-management-user-edit</id>
-                <name>user-management-user-edit</name>
-                <description>edit user</description>
-                <permanent>true</permanent>
-            </operation>
-            <operation>
-                <id>user-management-user-role</id>
-                <name>user-management-user-role</name>
-                <description>user roles</description>
-                <permanent>true</permanent>
-            </operation>
-            <operation>
-                <id>user-management-user-delete</id>
-                <name>user-management-user-delete</name>
-                <description>delete user</description>
-                <permanent>true</permanent>
-            </operation>
-            <operation>
-                <id>user-management-user-list</id>
-                <name>user-management-user-list</name>
-                <description>list users</description>
-                <permanent>true</permanent>
-            </operation>
-            <operation>
-                <id>user-management-role-grant</id>
-                <name>user-management-role-grant</name>
-                <description>grant role</description>
-                <permanent>true</permanent>
-            </operation>
-            <operation>
-                <id>user-management-role-drop</id>
-                <name>user-management-role-drop</name>
-                <description>drop role</description>
-                <permanent>true</permanent>
-            </operation>
-            <operation>
-                <id>user-management-rbac-admin</id>
-                <name>user-management-rbac-admin</name>
-                <description>administer rbac</description>
-                <permanent>true</permanent>
-            </operation>
-            <operation>
-                <id>guest-access</id>
-                <name>guest-access</name>
-                <description>access guest</description>
-                <permanent>true</permanent>
-            </operation>
-            <operation>
-                <id>user-management-manage-data</id>
-                <name>user-management-manage-data</name>
-                <description>manage data</description>
-                <permanent>true</permanent>
-            </operation>            
-        </operations>
-        <roles>
-            <role>
-                <id>system-administrator</id>
-                <name>System Administrator</name>
-                <permanent>true</permanent>
-                <assignable>true</assignable>
-                <permissions>
-                    <permission>
-                        <id>edit-redback-configuration</id>
-                        <name>Edit Redback Configuration</name>
-                        <operation>configuration-edit</operation>
-                        <resource>global</resource>
-                        <permanent>true</permanent>
-                    </permission>
-                    <permission>
-                        <id>manage-rbac-setup</id>
-                        <name>User RBAC Management</name>
-                        <operation>user-management-rbac-admin</operation>
-                        <resource>global</resource>
-                        <permanent>true</permanent>
-                    </permission>
-                    <permission>
-                        <id>manage-rbac-data</id>
-                        <name>RBAC Manage Data</name>
-                        <operation>user-management-manage-data</operation>
-                        <resource>global</resource>
-                        <permanent>true</permanent>
-                    </permission>                    
-                </permissions>
-                <childRoles>
-                    <childRole>user-administrator</childRole>
-                </childRoles>
-            </role>
-            <role>
-                <id>user-administrator</id>
-                <name>User Administrator</name>
-                <permanent>true</permanent>
-                <assignable>true</assignable>
-                <permissions>
-                    <permission>
-                        <id>drop-roles-for-anyone</id>
-                        <name>Drop Roles for Anyone</name>
-                        <operation>user-management-role-drop</operation>
-                        <resource>global</resource>
-                        <permanent>true</permanent>
-                    </permission>
-                    <permission>
-                        <id>grant-roles-for-anyone</id>
-                        <name>Grant Roles for Anyone</name>
-                        <operation>user-management-role-grant</operation>
-                        <resource>global</resource>
-                        <permanent>true</permanent>
-                    </permission>
-                    <permission>
-                        <id>user-create</id>
-                        <name>Create Users</name>
-                        <operation>user-management-user-create</operation>
-                        <resource>global</resource>
-                        <permanent>true</permanent>
-                    </permission>
-                    <permission>
-                        <id>user-delete</id>
-                        <name>Delete Users</name>
-                        <operation>user-management-user-delete</operation>
-                        <resource>global</resource>
-                        <permanent>true</permanent>
-                    </permission>
-                    <permission>
-                        <id>user-edit</id>
-                        <name>Edit Users</name>
-                        <operation>user-management-user-edit</operation>
-                        <resource>global</resource>
-                        <permanent>true</permanent>
-                    </permission>
-                    <permission>
-                        <id>access-users-roles</id>
-                        <name>Access Users Roles</name>
-                        <operation>user-management-user-role</operation>
-                        <resource>global</resource>
-                        <permanent>true</permanent>
-                    </permission>
-                    <permission>
-                        <id>access-user-list</id>
-                        <name>Access User List</name>
-                        <operation>user-management-user-list</operation>
-                        <resource>global</resource>
-                        <permanent>true</permanent>
-                    </permission>
-                </permissions>
-            </role>
-            <role>
-                <id>registered-user</id>
-                <name>Registered User</name>
-                <permanent>true</permanent>
-                <assignable>true</assignable>
-                <permissions>
-                    <permission>
-                        <id>edit-user-by-username</id>
-                        <name>Edit User Data by Username</name>
-                        <operation>user-management-user-edit</operation>
-                        <resource>username</resource>
-                        <permanent>true</permanent>
-                    </permission>
-                </permissions>
-            </role>
-            <role>
-                <id>guest</id>
-                <name>Guest</name>
-                <permanent>true</permanent>
-                <assignable>true</assignable>
-                <permissions>
-                    <permission>
-                        <id>guest-permission</id>
-                        <name>Guest Permission</name>
-                        <operation>guest-access</operation>
-                        <resource>global</resource>
-                        <permanent>true</permanent>
-                    </permission>
-                </permissions>
-            </role>
-        </roles>
-        </application>
-    </applications>
-</redback-role-model>
\ No newline at end of file
index c1b1b3b672eff927ccdcc61aa4c8f85e47d1ce7b..6af38b62657e1ab90b5b17ad4dfa1f2b715101b1 100644 (file)
       <scope>test</scope>
     </dependency>
 
+    <dependency>
+      <groupId>org.codehaus.redback</groupId>
+      <artifactId>redback-common-test-resources</artifactId>
+      <scope>test</scope>
+    </dependency>
+
   </dependencies>
 
   <build>
diff --git a/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/test/resources/META-INF/redback/redback-core.xml b/archiva-modules/archiva-base/archiva-repository-admin/archiva-repository-admin-default/src/test/resources/META-INF/redback/redback-core.xml
deleted file mode 100644 (file)
index c74e47d..0000000
+++ /dev/null
@@ -1,232 +0,0 @@
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~   http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-
-<redback-role-model>
-    <modelVersion>1.0.0</modelVersion>
-    <applications>
-        <application>
-          <id>System</id>
-          <description>Roles that apply system-wide, across all of the applications</description>
-        <version>1.0.0</version>
-        <resources>
-            <resource>
-                <id>global</id>
-                <name>*</name>
-                <permanent>true</permanent>
-                <description>global resource implies full access for authorization</description>
-            </resource>
-            <resource>
-                <id>username</id>
-                <name>${username}</name>
-                <permanent>true</permanent>
-                <description>replaced with the username of the principal at authorization check time</description>
-            </resource>
-        </resources>
-        <operations>
-            <operation>
-                <id>configuration-edit</id>
-                <name>configuration-edit</name>
-                <description>edit configuration</description>
-                <permanent>true</permanent>
-            </operation>
-            <operation>
-                <id>user-management-user-create</id>
-                <name>user-management-user-create</name>
-                <description>create user</description>
-                <permanent>true</permanent>
-            </operation>
-            <operation>
-                <id>user-management-user-edit</id>
-                <name>user-management-user-edit</name>
-                <description>edit user</description>
-                <permanent>true</permanent>
-            </operation>
-            <operation>
-                <id>user-management-user-role</id>
-                <name>user-management-user-role</name>
-                <description>user roles</description>
-                <permanent>true</permanent>
-            </operation>
-            <operation>
-                <id>user-management-user-delete</id>
-                <name>user-management-user-delete</name>
-                <description>delete user</description>
-                <permanent>true</permanent>
-            </operation>
-            <operation>
-                <id>user-management-user-list</id>
-                <name>user-management-user-list</name>
-                <description>list users</description>
-                <permanent>true</permanent>
-            </operation>
-            <operation>
-                <id>user-management-role-grant</id>
-                <name>user-management-role-grant</name>
-                <description>grant role</description>
-                <permanent>true</permanent>
-            </operation>
-            <operation>
-                <id>user-management-role-drop</id>
-                <name>user-management-role-drop</name>
-                <description>drop role</description>
-                <permanent>true</permanent>
-            </operation>
-            <operation>
-                <id>user-management-rbac-admin</id>
-                <name>user-management-rbac-admin</name>
-                <description>administer rbac</description>
-                <permanent>true</permanent>
-            </operation>
-            <operation>
-                <id>guest-access</id>
-                <name>guest-access</name>
-                <description>access guest</description>
-                <permanent>true</permanent>
-            </operation>
-            <operation>
-                <id>user-management-manage-data</id>
-                <name>user-management-manage-data</name>
-                <description>manage data</description>
-                <permanent>true</permanent>
-            </operation>            
-        </operations>
-        <roles>
-            <role>
-                <id>system-administrator</id>
-                <name>System Administrator</name>
-                <permanent>true</permanent>
-                <assignable>true</assignable>
-                <permissions>
-                    <permission>
-                        <id>edit-redback-configuration</id>
-                        <name>Edit Redback Configuration</name>
-                        <operation>configuration-edit</operation>
-                        <resource>global</resource>
-                        <permanent>true</permanent>
-                    </permission>
-                    <permission>
-                        <id>manage-rbac-setup</id>
-                        <name>User RBAC Management</name>
-                        <operation>user-management-rbac-admin</operation>
-                        <resource>global</resource>
-                        <permanent>true</permanent>
-                    </permission>
-                    <permission>
-                        <id>manage-rbac-data</id>
-                        <name>RBAC Manage Data</name>
-                        <operation>user-management-manage-data</operation>
-                        <resource>global</resource>
-                        <permanent>true</permanent>
-                    </permission>                    
-                </permissions>
-                <childRoles>
-                    <childRole>user-administrator</childRole>
-                </childRoles>
-            </role>
-            <role>
-                <id>user-administrator</id>
-                <name>User Administrator</name>
-                <permanent>true</permanent>
-                <assignable>true</assignable>
-                <permissions>
-                    <permission>
-                        <id>drop-roles-for-anyone</id>
-                        <name>Drop Roles for Anyone</name>
-                        <operation>user-management-role-drop</operation>
-                        <resource>global</resource>
-                        <permanent>true</permanent>
-                    </permission>
-                    <permission>
-                        <id>grant-roles-for-anyone</id>
-                        <name>Grant Roles for Anyone</name>
-                        <operation>user-management-role-grant</operation>
-                        <resource>global</resource>
-                        <permanent>true</permanent>
-                    </permission>
-                    <permission>
-                        <id>user-create</id>
-                        <name>Create Users</name>
-                        <operation>user-management-user-create</operation>
-                        <resource>global</resource>
-                        <permanent>true</permanent>
-                    </permission>
-                    <permission>
-                        <id>user-delete</id>
-                        <name>Delete Users</name>
-                        <operation>user-management-user-delete</operation>
-                        <resource>global</resource>
-                        <permanent>true</permanent>
-                    </permission>
-                    <permission>
-                        <id>user-edit</id>
-                        <name>Edit Users</name>
-                        <operation>user-management-user-edit</operation>
-                        <resource>global</resource>
-                        <permanent>true</permanent>
-                    </permission>
-                    <permission>
-                        <id>access-users-roles</id>
-                        <name>Access Users Roles</name>
-                        <operation>user-management-user-role</operation>
-                        <resource>global</resource>
-                        <permanent>true</permanent>
-                    </permission>
-                    <permission>
-                        <id>access-user-list</id>
-                        <name>Access User List</name>
-                        <operation>user-management-user-list</operation>
-                        <resource>global</resource>
-                        <permanent>true</permanent>
-                    </permission>
-                </permissions>
-            </role>
-            <role>
-                <id>registered-user</id>
-                <name>Registered User</name>
-                <permanent>true</permanent>
-                <assignable>true</assignable>
-                <permissions>
-                    <permission>
-                        <id>edit-user-by-username</id>
-                        <name>Edit User Data by Username</name>
-                        <operation>user-management-user-edit</operation>
-                        <resource>username</resource>
-                        <permanent>true</permanent>
-                    </permission>
-                </permissions>
-            </role>
-            <role>
-                <id>guest</id>
-                <name>Guest</name>
-                <permanent>true</permanent>
-                <assignable>true</assignable>
-                <permissions>
-                    <permission>
-                        <id>guest-permission</id>
-                        <name>Guest Permission</name>
-                        <operation>guest-access</operation>
-                        <resource>global</resource>
-                        <permanent>true</permanent>
-                    </permission>
-                </permissions>
-            </role>
-        </roles>
-        </application>
-    </applications>
-</redback-role-model>
\ No newline at end of file
index 48f8eb5ffc5f92a55e09f74ac3d176a0b23b9d64..959af941c8c8ce3182dd7c986741f8600d559c58 100644 (file)
       <artifactId>wagon-http</artifactId>
       <scope>provided</scope>
     </dependency>
+
+    <dependency>
+      <groupId>org.codehaus.redback</groupId>
+      <artifactId>redback-common-test-resources</artifactId>
+      <scope>test</scope>
+    </dependency>
+
   </dependencies>
 
   <build>
diff --git a/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/test/resources/META-INF/redback/redback-core.xml b/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/test/resources/META-INF/redback/redback-core.xml
deleted file mode 100644 (file)
index 751ac5c..0000000
+++ /dev/null
@@ -1,247 +0,0 @@
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~   http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-
-<redback-role-model>
-  <modelVersion>1.0.0</modelVersion>
-  <applications>
-    <application>
-      <id>System</id>
-      <description>Roles that apply system-wide, across all of the applications</description>
-      <version>1.0.0</version>
-      <resources>
-        <resource>
-          <id>global</id>
-          <name>*</name>
-          <permanent>true</permanent>
-          <description>global resource implies full access for authorization</description>
-        </resource>
-        <resource>
-          <id>username</id>
-          <name>${username}</name>
-          <permanent>true</permanent>
-          <description>replaced with the username of the principal at authorization check time</description>
-        </resource>
-      </resources>
-      <operations>
-        <operation>
-          <id>configuration-edit</id>
-          <name>configuration-edit</name>
-          <description>edit configuration</description>
-          <permanent>true</permanent>
-        </operation>
-        <operation>
-          <id>user-management-user-create</id>
-          <name>user-management-user-create</name>
-          <description>create user</description>
-          <permanent>true</permanent>
-        </operation>
-        <operation>
-          <id>user-management-user-edit</id>
-          <name>user-management-user-edit</name>
-          <description>edit user</description>
-          <permanent>true</permanent>
-        </operation>
-        <operation>
-          <id>user-management-user-role</id>
-          <name>user-management-user-role</name>
-          <description>user roles</description>
-          <permanent>true</permanent>
-        </operation>
-        <operation>
-          <id>user-management-user-delete</id>
-          <name>user-management-user-delete</name>
-          <description>delete user</description>
-          <permanent>true</permanent>
-        </operation>
-        <operation>
-          <id>user-management-user-list</id>
-          <name>user-management-user-list</name>
-          <description>list users</description>
-          <permanent>true</permanent>
-        </operation>
-        <operation>
-          <id>user-management-role-grant</id>
-          <name>user-management-role-grant</name>
-          <description>grant role</description>
-          <permanent>true</permanent>
-        </operation>
-        <operation>
-          <id>user-management-role-drop</id>
-          <name>user-management-role-drop</name>
-          <description>drop role</description>
-          <permanent>true</permanent>
-        </operation>
-        <operation>
-          <id>user-management-rbac-admin</id>
-          <name>user-management-rbac-admin</name>
-          <description>administer rbac</description>
-          <permanent>true</permanent>
-        </operation>
-        <operation>
-          <id>guest-access</id>
-          <name>guest-access</name>
-          <description>access guest</description>
-          <permanent>true</permanent>
-        </operation>
-        <operation>
-          <id>user-management-manage-data</id>
-          <name>user-management-manage-data</name>
-          <description>manage data</description>
-          <permanent>true</permanent>
-        </operation>
-      </operations>
-      <roles>
-        <role>
-          <id>system-administrator</id>
-          <name>System Administrator</name>
-          <permanent>true</permanent>
-          <assignable>true</assignable>
-          <permissions>
-            <permission>
-              <id>edit-redback-configuration</id>
-              <name>Edit Redback Configuration</name>
-              <operation>configuration-edit</operation>
-              <resource>global</resource>
-              <permanent>true</permanent>
-            </permission>
-            <permission>
-              <id>manage-rbac-setup</id>
-              <name>User RBAC Management</name>
-              <operation>user-management-rbac-admin</operation>
-              <resource>global</resource>
-              <permanent>true</permanent>
-            </permission>
-            <permission>
-              <id>manage-rbac-data</id>
-              <name>RBAC Manage Data</name>
-              <operation>user-management-manage-data</operation>
-              <resource>global</resource>
-              <permanent>true</permanent>
-            </permission>
-          </permissions>
-          <childRoles>
-            <childRole>user-administrator</childRole>
-          </childRoles>
-        </role>
-        <role>
-          <id>user-administrator</id>
-          <name>User Administrator</name>
-          <permanent>true</permanent>
-          <assignable>true</assignable>
-          <permissions>
-            <permission>
-              <id>drop-roles-for-anyone</id>
-              <name>Drop Roles for Anyone</name>
-              <operation>user-management-role-drop</operation>
-              <resource>global</resource>
-              <permanent>true</permanent>
-            </permission>
-            <permission>
-              <id>grant-roles-for-anyone</id>
-              <name>Grant Roles for Anyone</name>
-              <operation>user-management-role-grant</operation>
-              <resource>global</resource>
-              <permanent>true</permanent>
-            </permission>
-            <permission>
-              <id>user-create</id>
-              <name>Create Users</name>
-              <operation>user-management-user-create</operation>
-              <resource>global</resource>
-              <permanent>true</permanent>
-            </permission>
-            <permission>
-              <id>user-delete</id>
-              <name>Delete Users</name>
-              <operation>user-management-user-delete</operation>
-              <resource>global</resource>
-              <permanent>true</permanent>
-            </permission>
-            <permission>
-              <id>user-edit</id>
-              <name>Edit Users</name>
-              <operation>user-management-user-edit</operation>
-              <resource>global</resource>
-              <permanent>true</permanent>
-            </permission>
-            <permission>
-              <id>access-users-roles</id>
-              <name>Access Users Roles</name>
-              <operation>user-management-user-role</operation>
-              <resource>global</resource>
-              <permanent>true</permanent>
-            </permission>
-            <permission>
-              <id>access-user-list</id>
-              <name>Access User List</name>
-              <operation>user-management-user-list</operation>
-              <resource>global</resource>
-              <permanent>true</permanent>
-            </permission>
-          </permissions>
-        </role>
-        <role>
-          <id>edit-users-list</id>
-          <name>edit users list</name>
-          <permanent>true</permanent>
-          <assignable>true</assignable>
-          <permissions>
-            <permission>
-              <id>access-user-list</id>
-              <name>Access User List</name>
-              <operation>user-management-user-list</operation>
-              <resource>global</resource>
-              <permanent>true</permanent>
-            </permission>
-          </permissions>
-        </role>
-        <role>
-          <id>registered-user</id>
-          <name>Registered User</name>
-          <permanent>true</permanent>
-          <assignable>true</assignable>
-          <permissions>
-            <permission>
-              <id>edit-user-by-username</id>
-              <name>Edit User Data by Username</name>
-              <operation>user-management-user-edit</operation>
-              <resource>username</resource>
-              <permanent>true</permanent>
-            </permission>
-          </permissions>
-        </role>
-        <role>
-          <id>guest</id>
-          <name>Guest</name>
-          <permanent>true</permanent>
-          <assignable>true</assignable>
-          <permissions>
-            <permission>
-              <id>guest-permission</id>
-              <name>Guest Permission</name>
-              <operation>guest-access</operation>
-              <resource>global</resource>
-              <permanent>true</permanent>
-            </permission>
-          </permissions>
-        </role>
-      </roles>
-    </application>
-  </applications>
-</redback-role-model>
\ No newline at end of file
index 23c1685bcd880cbc9993ade1df9ca4c35c5cd2cb..86f2fe1d7434f07636cb559f383f174e0de764a1 100644 (file)
       <artifactId>spring-test</artifactId>
       <scope>test</scope>
     </dependency>
+    <dependency>
+      <groupId>org.codehaus.redback</groupId>
+      <artifactId>redback-common-test-resources</artifactId>
+      <scope>test</scope>
+    </dependency>
   </dependencies>
   <build>
     <plugins>
diff --git a/archiva-modules/archiva-web/archiva-security/src/test/resources/META-INF/redback/redback-core.xml b/archiva-modules/archiva-web/archiva-security/src/test/resources/META-INF/redback/redback-core.xml
deleted file mode 100644 (file)
index e810f44..0000000
+++ /dev/null
@@ -1,222 +0,0 @@
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~  http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-<redback-role-model>
-  <modelVersion>1.0.0</modelVersion>
-  <applications>
-    <application>
-      <id>Redback XWork Integration Security Core</id>
-      <version>1.0</version>
-      <resources>
-        <resource>
-          <id>global</id>
-          <name>*</name>
-          <permanent>true</permanent>
-          <description>
-            global resource implies full access for authorization
-          </description>
-        </resource>
-        <resource>
-          <id>username</id>
-          <name>${username}</name>
-          <permanent>true</permanent>
-          <description>
-            replaced with the username of the principal at authorization
-            check time
-          </description>
-        </resource>
-      </resources>
-      <operations>
-        <operation>
-          <id>configuration-edit</id>
-          <name>configuration-edit</name>
-          <description>edit configuration</description>
-          <permanent>true</permanent>
-        </operation>
-        <operation>
-          <id>user-management-user-create</id>
-          <name>user-management-user-create</name>
-          <description>create user</description>
-          <permanent>true</permanent>
-        </operation>
-        <operation>
-          <id>user-management-user-edit</id>
-          <name>user-management-user-edit</name>
-          <description>edit user</description>
-          <permanent>true</permanent>
-        </operation>
-        <operation>
-          <id>user-management-user-role</id>
-          <name>user-management-user-role</name>
-          <description>user roles</description>
-          <permanent>true</permanent>
-        </operation>
-        <operation>
-          <id>user-management-user-delete</id>
-          <name>user-management-user-delete</name>
-          <description>delete user</description>
-          <permanent>true</permanent>
-        </operation>
-        <operation>
-          <id>user-management-user-list</id>
-          <name>user-management-user-list</name>
-          <description>list users</description>
-          <permanent>true</permanent>
-        </operation>
-        <operation>
-          <id>user-management-role-grant</id>
-          <name>user-management-role-grant</name>
-          <description>grant role</description>
-          <permanent>true</permanent>
-        </operation>
-        <operation>
-          <id>user-management-role-drop</id>
-          <name>user-management-role-drop</name>
-          <description>drop role</description>
-          <permanent>true</permanent>
-        </operation>
-        <operation>
-          <id>user-management-rbac-admin</id>
-          <name>user-management-rbac-admin</name>
-          <description>administer rbac</description>
-          <permanent>true</permanent>
-        </operation>
-        <operation>
-          <id>guest-access</id>
-          <name>guest-access</name>
-          <description>access guest</description>
-          <permanent>true</permanent>
-        </operation>
-      </operations>
-      <roles>
-        <role>
-          <id>system-administrator</id>
-          <name>System Administrator</name>
-          <permanent>true</permanent>
-          <assignable>true</assignable>
-          <permissions>
-            <permission>
-              <id>edit-redback-configuration</id>
-              <name>Edit Redback Configuration</name>
-              <operation>configuration-edit</operation>
-              <resource>global</resource>
-              <permanent>true</permanent>
-            </permission>
-            <permission>
-              <id>manage-rbac-setup</id>
-              <name>User RBAC Management</name>
-              <operation>user-management-rbac-admin</operation>
-              <resource>global</resource>
-              <permanent>true</permanent>
-            </permission>
-          </permissions>
-          <childRoles>
-            <childRole>user-administrator</childRole>
-          </childRoles>
-        </role>
-        <role>
-          <id>user-administrator</id>
-          <name>User Administrator</name>
-          <permanent>true</permanent>
-          <assignable>true</assignable>
-          <permissions>
-            <permission>
-              <id>drop-roles-for-anyone</id>
-              <name>Drop Roles for Anyone</name>
-              <operation>user-management-role-drop</operation>
-              <resource>global</resource>
-              <permanent>true</permanent>
-            </permission>
-            <permission>
-              <id>grant-roles-for-anyone</id>
-              <name>Grant Roles for Anyone</name>
-              <operation>user-management-role-grant</operation>
-              <resource>global</resource>
-              <permanent>true</permanent>
-            </permission>
-            <permission>
-              <id>user-create</id>
-              <name>Create Users</name>
-              <operation>user-management-user-create</operation>
-              <resource>global</resource>
-              <permanent>true</permanent>
-            </permission>
-            <permission>
-              <id>user-delete</id>
-              <name>Delete Users</name>
-              <operation>user-management-user-delete</operation>
-              <resource>global</resource>
-              <permanent>true</permanent>
-            </permission>
-            <permission>
-              <id>user-edit</id>
-              <name>Edit Users</name>
-              <operation>user-management-user-edit</operation>
-              <resource>global</resource>
-              <permanent>true</permanent>
-            </permission>
-            <permission>
-              <id>access-users-roles</id>
-              <name>Access Users Roles</name>
-              <operation>user-management-user-role</operation>
-              <resource>global</resource>
-              <permanent>true</permanent>
-            </permission>
-            <permission>
-              <id>access-user-list</id>
-              <name>Access User List</name>
-              <operation>user-management-user-list</operation>
-              <resource>global</resource>
-              <permanent>true</permanent>
-            </permission>
-          </permissions>
-        </role>
-        <role>
-          <id>registered-user</id>
-          <name>Registered User</name>
-          <permanent>true</permanent>
-          <assignable>true</assignable>
-          <permissions>
-            <permission>
-              <id>edit-user-by-username</id>
-              <name>Edit User Data by Username</name>
-              <operation>user-management-user-edit</operation>
-              <resource>username</resource>
-              <permanent>true</permanent>
-            </permission>
-          </permissions>
-        </role>
-        <role>
-          <id>guest</id>
-          <name>Guest</name>
-          <permanent>true</permanent>
-          <assignable>true</assignable>
-          <permissions>
-            <permission>
-              <id>guest-permission</id>
-              <name>Guest Permission</name>
-              <operation>guest-access</operation>
-              <resource>global</resource>
-              <permanent>true</permanent>
-            </permission>
-          </permissions>
-        </role>
-      </roles>
-    </application>
-  </applications>
-</redback-role-model>
index 3978d9e8b57e4c8d8c2a383b7e3fafb10f829efc..457591ab8c483edb8200b7b73253e17ae9808419 100644 (file)
       <groupId>org.apache.derby</groupId>
       <artifactId>derby</artifactId>
     </dependency>
+    <dependency>
+      <groupId>org.codehaus.redback</groupId>
+      <artifactId>redback-common-test-resources</artifactId>
+      <scope>test</scope>
+    </dependency>
   </dependencies>
   <build>
     <plugins>
diff --git a/archiva-modules/archiva-web/archiva-xmlrpc/archiva-xmlrpc-security/src/test/resources/META-INF/redback/redback-core.xml b/archiva-modules/archiva-web/archiva-xmlrpc/archiva-xmlrpc-security/src/test/resources/META-INF/redback/redback-core.xml
deleted file mode 100644 (file)
index 5492479..0000000
+++ /dev/null
@@ -1,228 +0,0 @@
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~  http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-<redback-role-model>
-  <modelVersion>1.0.0</modelVersion>
-  <applications>
-    <application>
-      <id>Redback XWork Integration Security Core</id>
-      <version>1.0</version>
-      <resources>
-        <resource>
-          <id>global</id>
-          <name>*</name>
-          <permanent>true</permanent>
-          <description>
-            global resource implies full access for authorization
-          </description>
-        </resource>
-        <resource>
-          <id>username</id>
-          <name>${username}</name>
-          <permanent>true</permanent>
-          <description>
-            replaced with the username of the principal at authorization
-            check time
-          </description>
-        </resource>
-      </resources>
-      <operations>
-        <operation>
-          <id>configuration-edit</id>
-          <name>configuration-edit</name>
-          <description>edit configuration</description>
-          <permanent>true</permanent>
-        </operation>
-        <operation>
-          <id>user-management-user-create</id>
-          <name>user-management-user-create</name>
-          <description>create user</description>
-          <permanent>true</permanent>
-        </operation>
-        <operation>
-          <id>user-management-user-edit</id>
-          <name>user-management-user-edit</name>
-          <description>edit user</description>
-          <permanent>true</permanent>
-        </operation>
-        <operation>
-          <id>user-management-user-role</id>
-          <name>user-management-user-role</name>
-          <description>user roles</description>
-          <permanent>true</permanent>
-        </operation>
-        <operation>
-          <id>user-management-user-delete</id>
-          <name>user-management-user-delete</name>
-          <description>delete user</description>
-          <permanent>true</permanent>
-        </operation>
-        <operation>
-          <id>user-management-user-list</id>
-          <name>user-management-user-list</name>
-          <description>list users</description>
-          <permanent>true</permanent>
-        </operation>
-        <operation>
-          <id>user-management-role-grant</id>
-          <name>user-management-role-grant</name>
-          <description>grant role</description>
-          <permanent>true</permanent>
-        </operation>
-        <operation>
-          <id>user-management-role-drop</id>
-          <name>user-management-role-drop</name>
-          <description>drop role</description>
-          <permanent>true</permanent>
-        </operation>
-        <operation>
-          <id>user-management-rbac-admin</id>
-          <name>user-management-rbac-admin</name>
-          <description>administer rbac</description>
-          <permanent>true</permanent>
-        </operation>
-        <operation>
-          <id>guest-access</id>
-          <name>guest-access</name>
-          <description>access guest</description>
-          <permanent>true</permanent>
-        </operation>
-        <operation>
-          <id>add-repository</id>
-          <name>add-repository</name>
-          <description>add repository</description>
-          <permanent>true</permanent>
-        </operation>
-      </operations>
-      <roles>
-        <role>
-          <id>system-administrator</id>
-          <name>System Administrator</name>
-          <permanent>true</permanent>
-          <assignable>true</assignable>
-          <permissions>
-            <permission>
-              <id>edit-redback-configuration</id>
-              <name>Edit Redback Configuration</name>
-              <operation>configuration-edit</operation>
-              <resource>global</resource>
-              <permanent>true</permanent>
-            </permission>
-            <permission>
-              <id>manage-rbac-setup</id>
-              <name>User RBAC Management</name>
-              <operation>user-management-rbac-admin</operation>
-              <resource>global</resource>
-              <permanent>true</permanent>
-            </permission>
-          </permissions>
-          <childRoles>
-            <childRole>user-administrator</childRole>
-          </childRoles>
-        </role>
-        <role>
-          <id>user-administrator</id>
-          <name>User Administrator</name>
-          <permanent>true</permanent>
-          <assignable>true</assignable>
-          <permissions>
-            <permission>
-              <id>drop-roles-for-anyone</id>
-              <name>Drop Roles for Anyone</name>
-              <operation>user-management-role-drop</operation>
-              <resource>global</resource>
-              <permanent>true</permanent>
-            </permission>
-            <permission>
-              <id>grant-roles-for-anyone</id>
-              <name>Grant Roles for Anyone</name>
-              <operation>user-management-role-grant</operation>
-              <resource>global</resource>
-              <permanent>true</permanent>
-            </permission>
-            <permission>
-              <id>user-create</id>
-              <name>Create Users</name>
-              <operation>user-management-user-create</operation>
-              <resource>global</resource>
-              <permanent>true</permanent>
-            </permission>
-            <permission>
-              <id>user-delete</id>
-              <name>Delete Users</name>
-              <operation>user-management-user-delete</operation>
-              <resource>global</resource>
-              <permanent>true</permanent>
-            </permission>
-            <permission>
-              <id>user-edit</id>
-              <name>Edit Users</name>
-              <operation>user-management-user-edit</operation>
-              <resource>global</resource>
-              <permanent>true</permanent>
-            </permission>
-            <permission>
-              <id>access-users-roles</id>
-              <name>Access Users Roles</name>
-              <operation>user-management-user-role</operation>
-              <resource>global</resource>
-              <permanent>true</permanent>
-            </permission>
-            <permission>
-              <id>access-user-list</id>
-              <name>Access User List</name>
-              <operation>user-management-user-list</operation>
-              <resource>global</resource>
-              <permanent>true</permanent>
-            </permission>
-          </permissions>
-        </role>
-        <role>
-          <id>registered-user</id>
-          <name>Registered User</name>
-          <permanent>true</permanent>
-          <assignable>true</assignable>
-          <permissions>
-            <permission>
-              <id>edit-user-by-username</id>
-              <name>Edit User Data by Username</name>
-              <operation>user-management-user-edit</operation>
-              <resource>username</resource>
-              <permanent>true</permanent>
-            </permission>
-          </permissions>
-        </role>
-        <role>
-          <id>guest</id>
-          <name>Guest</name>
-          <permanent>true</permanent>
-          <assignable>true</assignable>
-          <permissions>
-            <permission>
-              <id>guest-permission</id>
-              <name>Guest Permission</name>
-              <operation>guest-access</operation>
-              <resource>global</resource>
-              <permanent>true</permanent>
-            </permission>
-          </permissions>
-        </role>        
-      </roles>
-    </application>
-  </applications>
-</redback-role-model>
index 45efa378f6d6080f81cd57435f642ecf1ed8d742..322d8e91bf78ccbb57d9fd3cafb6de7e57f86723 100644 (file)
       <artifactId>redback-users-memory</artifactId>
       <scope>test</scope>
     </dependency>
+    <dependency>
+      <groupId>org.codehaus.redback</groupId>
+      <artifactId>redback-common-test-resources</artifactId>
+      <scope>test</scope>
+    </dependency>
   </dependencies>
   <build>
     <pluginManagement>
diff --git a/archiva-modules/archiva-web/archiva-xmlrpc/archiva-xmlrpc-services/src/test/resources/META-INF/redback/redback-core.xml b/archiva-modules/archiva-web/archiva-xmlrpc/archiva-xmlrpc-services/src/test/resources/META-INF/redback/redback-core.xml
deleted file mode 100644 (file)
index 751ac5c..0000000
+++ /dev/null
@@ -1,247 +0,0 @@
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one
-  ~ or more contributor license agreements.  See the NOTICE file
-  ~ distributed with this work for additional information
-  ~ regarding copyright ownership.  The ASF licenses this file
-  ~ to you under the Apache License, Version 2.0 (the
-  ~ "License"); you may not use this file except in compliance
-  ~ with the License.  You may obtain a copy of the License at
-  ~
-  ~   http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing,
-  ~ software distributed under the License is distributed on an
-  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  ~ KIND, either express or implied.  See the License for the
-  ~ specific language governing permissions and limitations
-  ~ under the License.
-  -->
-
-<redback-role-model>
-  <modelVersion>1.0.0</modelVersion>
-  <applications>
-    <application>
-      <id>System</id>
-      <description>Roles that apply system-wide, across all of the applications</description>
-      <version>1.0.0</version>
-      <resources>
-        <resource>
-          <id>global</id>
-          <name>*</name>
-          <permanent>true</permanent>
-          <description>global resource implies full access for authorization</description>
-        </resource>
-        <resource>
-          <id>username</id>
-          <name>${username}</name>
-          <permanent>true</permanent>
-          <description>replaced with the username of the principal at authorization check time</description>
-        </resource>
-      </resources>
-      <operations>
-        <operation>
-          <id>configuration-edit</id>
-          <name>configuration-edit</name>
-          <description>edit configuration</description>
-          <permanent>true</permanent>
-        </operation>
-        <operation>
-          <id>user-management-user-create</id>
-          <name>user-management-user-create</name>
-          <description>create user</description>
-          <permanent>true</permanent>
-        </operation>
-        <operation>
-          <id>user-management-user-edit</id>
-          <name>user-management-user-edit</name>
-          <description>edit user</description>
-          <permanent>true</permanent>
-        </operation>
-        <operation>
-          <id>user-management-user-role</id>
-          <name>user-management-user-role</name>
-          <description>user roles</description>
-          <permanent>true</permanent>
-        </operation>
-        <operation>
-          <id>user-management-user-delete</id>
-          <name>user-management-user-delete</name>
-          <description>delete user</description>
-          <permanent>true</permanent>
-        </operation>
-        <operation>
-          <id>user-management-user-list</id>
-          <name>user-management-user-list</name>
-          <description>list users</description>
-          <permanent>true</permanent>
-        </operation>
-        <operation>
-          <id>user-management-role-grant</id>
-          <name>user-management-role-grant</name>
-          <description>grant role</description>
-          <permanent>true</permanent>
-        </operation>
-        <operation>
-          <id>user-management-role-drop</id>
-          <name>user-management-role-drop</name>
-          <description>drop role</description>
-          <permanent>true</permanent>
-        </operation>
-        <operation>
-          <id>user-management-rbac-admin</id>
-          <name>user-management-rbac-admin</name>
-          <description>administer rbac</description>
-          <permanent>true</permanent>
-        </operation>
-        <operation>
-          <id>guest-access</id>
-          <name>guest-access</name>
-          <description>access guest</description>
-          <permanent>true</permanent>
-        </operation>
-        <operation>
-          <id>user-management-manage-data</id>
-          <name>user-management-manage-data</name>
-          <description>manage data</description>
-          <permanent>true</permanent>
-        </operation>
-      </operations>
-      <roles>
-        <role>
-          <id>system-administrator</id>
-          <name>System Administrator</name>
-          <permanent>true</permanent>
-          <assignable>true</assignable>
-          <permissions>
-            <permission>
-              <id>edit-redback-configuration</id>
-              <name>Edit Redback Configuration</name>
-              <operation>configuration-edit</operation>
-              <resource>global</resource>
-              <permanent>true</permanent>
-            </permission>
-            <permission>
-              <id>manage-rbac-setup</id>
-              <name>User RBAC Management</name>
-              <operation>user-management-rbac-admin</operation>
-              <resource>global</resource>
-              <permanent>true</permanent>
-            </permission>
-            <permission>
-              <id>manage-rbac-data</id>
-              <name>RBAC Manage Data</name>
-              <operation>user-management-manage-data</operation>
-              <resource>global</resource>
-              <permanent>true</permanent>
-            </permission>
-          </permissions>
-          <childRoles>
-            <childRole>user-administrator</childRole>
-          </childRoles>
-        </role>
-        <role>
-          <id>user-administrator</id>
-          <name>User Administrator</name>
-          <permanent>true</permanent>
-          <assignable>true</assignable>
-          <permissions>
-            <permission>
-              <id>drop-roles-for-anyone</id>
-              <name>Drop Roles for Anyone</name>
-              <operation>user-management-role-drop</operation>
-              <resource>global</resource>
-              <permanent>true</permanent>
-            </permission>
-            <permission>
-              <id>grant-roles-for-anyone</id>
-              <name>Grant Roles for Anyone</name>
-              <operation>user-management-role-grant</operation>
-              <resource>global</resource>
-              <permanent>true</permanent>
-            </permission>
-            <permission>
-              <id>user-create</id>
-              <name>Create Users</name>
-              <operation>user-management-user-create</operation>
-              <resource>global</resource>
-              <permanent>true</permanent>
-            </permission>
-            <permission>
-              <id>user-delete</id>
-              <name>Delete Users</name>
-              <operation>user-management-user-delete</operation>
-              <resource>global</resource>
-              <permanent>true</permanent>
-            </permission>
-            <permission>
-              <id>user-edit</id>
-              <name>Edit Users</name>
-              <operation>user-management-user-edit</operation>
-              <resource>global</resource>
-              <permanent>true</permanent>
-            </permission>
-            <permission>
-              <id>access-users-roles</id>
-              <name>Access Users Roles</name>
-              <operation>user-management-user-role</operation>
-              <resource>global</resource>
-              <permanent>true</permanent>
-            </permission>
-            <permission>
-              <id>access-user-list</id>
-              <name>Access User List</name>
-              <operation>user-management-user-list</operation>
-              <resource>global</resource>
-              <permanent>true</permanent>
-            </permission>
-          </permissions>
-        </role>
-        <role>
-          <id>edit-users-list</id>
-          <name>edit users list</name>
-          <permanent>true</permanent>
-          <assignable>true</assignable>
-          <permissions>
-            <permission>
-              <id>access-user-list</id>
-              <name>Access User List</name>
-              <operation>user-management-user-list</operation>
-              <resource>global</resource>
-              <permanent>true</permanent>
-            </permission>
-          </permissions>
-        </role>
-        <role>
-          <id>registered-user</id>
-          <name>Registered User</name>
-          <permanent>true</permanent>
-          <assignable>true</assignable>
-          <permissions>
-            <permission>
-              <id>edit-user-by-username</id>
-              <name>Edit User Data by Username</name>
-              <operation>user-management-user-edit</operation>
-              <resource>username</resource>
-              <permanent>true</permanent>
-            </permission>
-          </permissions>
-        </role>
-        <role>
-          <id>guest</id>
-          <name>Guest</name>
-          <permanent>true</permanent>
-          <assignable>true</assignable>
-          <permissions>
-            <permission>
-              <id>guest-permission</id>
-              <name>Guest Permission</name>
-              <operation>guest-access</operation>
-              <resource>global</resource>
-              <permanent>true</permanent>
-            </permission>
-          </permissions>
-        </role>
-      </roles>
-    </application>
-  </applications>
-</redback-role-model>
\ No newline at end of file