diff options
author | Olivier Lamy <olamy@apache.org> | 2011-06-08 15:59:41 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2011-06-08 15:59:41 +0000 |
commit | de7890f4a3dbfaee1a2abeda4a78044dde6454b4 (patch) | |
tree | 2a5707ad9ac6c4f6dd9abff3c0536d2f3e90b53f /archiva-modules/archiva-web/archiva-security/src/test/resources/spring-context.xml | |
parent | 217ae162828cce5f473c4e3b87c985f21c1a3b5b (diff) | |
download | archiva-de7890f4a3dbfaee1a2abeda4a78044dde6454b4.tar.gz archiva-de7890f4a3dbfaee1a2abeda4a78044dde6454b4.zip |
fix more unit tests in archiva-security
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1133448 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-web/archiva-security/src/test/resources/spring-context.xml')
-rw-r--r-- | archiva-modules/archiva-web/archiva-security/src/test/resources/spring-context.xml | 61 |
1 files changed, 18 insertions, 43 deletions
diff --git a/archiva-modules/archiva-web/archiva-security/src/test/resources/spring-context.xml b/archiva-modules/archiva-web/archiva-security/src/test/resources/spring-context.xml index 30e0cbd56..44e71526c 100644 --- a/archiva-modules/archiva-web/archiva-security/src/test/resources/spring-context.xml +++ b/archiva-modules/archiva-web/archiva-security/src/test/resources/spring-context.xml @@ -52,42 +52,33 @@ <bean name="roleManager" class="org.codehaus.plexus.redback.role.DefaultRoleManager"> <property name="rbacManager" ref="rBACManager#memory"/> + <property name="modelProcessor" ref="roleModelProcessor"/> + <property name="templateProcessor" ref="roleTemplateProcessor#test"/> </bean> <bean name="rBACManager#cached" class="org.codehaus.plexus.redback.rbac.cached.CachedRbacManager"> <property name="rbacImpl" ref="rBACManager#memory"/> </bean> - <!-- + <bean name="roleModelProcessor" class="org.codehaus.plexus.redback.role.processor.DefaultRoleModelProcessor"> + <property name="rbacManager" ref="rBACManager#memory"/> + </bean> + <alias name="roleModelProcessor" alias="roleModelProcessor#test"/> - <component> - <role>org.codehaus.plexus.redback.role.processor.RoleModelProcessor</role> - <role-hint>default</role-hint> - <implementation>org.codehaus.plexus.redback.role.processor.DefaultRoleModelProcessor</implementation> - <description>DefaultRoleModelProcessor: inserts the components of the model that can be populated into the rbac manager</description> - <requirements> - <requirement> - <role>org.codehaus.plexus.redback.rbac.RBACManager</role> - <role-hint>memory</role-hint> - <field-name>rbacManager</field-name> - </requirement> - </requirements> - </component> + <bean name="roleTemplateProcessor" class="org.codehaus.plexus.redback.role.template.DefaultRoleTemplateProcessor"> + <property name="rbacManager" ref="rBACManager#memory"/> + </bean> - <component> - <role>org.codehaus.plexus.redback.role.template.RoleTemplateProcessor</role> - <role-hint>default</role-hint> - <implementation>org.codehaus.plexus.redback.role.template.DefaultRoleTemplateProcessor</implementation> - <description>DefaultRoleTemplateProcessor: inserts the components of a template into the rbac manager</description> - <requirements> - <requirement> - <role>org.codehaus.plexus.redback.rbac.RBACManager</role> - <role-hint>memory</role-hint> - <field-name>rbacManager</field-name> - </requirement> - </requirements> - </component> + <alias name="roleTemplateProcessor" alias="roleTemplateProcessor#test"/> + + <bean name="servletAuthenticator" class="org.apache.maven.archiva.security.ArchivaServletAuthenticator"> + <property name="securitySystem" ref="securitySystem#testable"/> + </bean> + + <alias name="servletAuthenticator" alias="servletAuthenticator#test"/> + + <!-- <component> <role>org.apache.maven.archiva.configuration.ArchivaConfiguration</role> @@ -113,22 +104,6 @@ </component> - ignored ?? - - <component> - <role>org.apache.maven.archiva.security.ServletAuthenticator</role> - <role-hint>default</role-hint> - <implementation>org.apache.maven.archiva.security.ArchivaServletAuthenticator</implementation> - <description>ArchivaServletAuthenticator</description> - <requirements> - <requirement> - <role>org.codehaus.plexus.redback.system.SecuritySystem</role> - <role-hint>testable</role-hint> - <field-name>securitySystem</field-name> - </requirement> - </requirements> - </component> - partially configured <component> |