You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by dd...@apache.org on 2009/01/21 15:18:02 UTC
svn commit: r736315 - in
/portals/jetspeed-2/portal/trunk/components/jetspeed-security/src/test/java:
JETSPEED-INF/spring/JetspeedPrincipalManagerProviderOverride.xml
org/apache/jetspeed/security/AbstractSecurityTestcase.java
Author: ddam
Date: Wed Jan 21 06:18:01 2009
New Revision: 736315
URL: http://svn.apache.org/viewvc?rev=736315&view=rev
Log:
override JetspeedPrincipalManagerProvider bean in jetspeed-security tests to get rid of SSO dependency
Added:
portals/jetspeed-2/portal/trunk/components/jetspeed-security/src/test/java/JETSPEED-INF/spring/JetspeedPrincipalManagerProviderOverride.xml (with props)
Modified:
portals/jetspeed-2/portal/trunk/components/jetspeed-security/src/test/java/org/apache/jetspeed/security/AbstractSecurityTestcase.java
Added: portals/jetspeed-2/portal/trunk/components/jetspeed-security/src/test/java/JETSPEED-INF/spring/JetspeedPrincipalManagerProviderOverride.xml
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/trunk/components/jetspeed-security/src/test/java/JETSPEED-INF/spring/JetspeedPrincipalManagerProviderOverride.xml?rev=736315&view=auto
==============================================================================
--- portals/jetspeed-2/portal/trunk/components/jetspeed-security/src/test/java/JETSPEED-INF/spring/JetspeedPrincipalManagerProviderOverride.xml (added)
+++ portals/jetspeed-2/portal/trunk/components/jetspeed-security/src/test/java/JETSPEED-INF/spring/JetspeedPrincipalManagerProviderOverride.xml Wed Jan 21 06:18:01 2009
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ 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.
+-->
+<beans xmlns="http://www.springframework.org/schema/beans"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
+
+ <bean id="org.apache.jetspeed.security.spi.JetspeedPrincipalManagerProvider"
+ class="org.apache.jetspeed.security.impl.JetspeedPrincipalManagerProviderImpl">
+ <meta key="j2:cat" value="default,security" />
+ <constructor-arg index="0">
+ <set>
+ <ref bean="org.apache.jetspeed.security.UserManager" />
+ <ref bean="org.apache.jetspeed.security.GroupManager" />
+ <ref bean="org.apache.jetspeed.security.RoleManager" />
+ </set>
+ </constructor-arg>
+ </bean>
+
+</beans>
Propchange: portals/jetspeed-2/portal/trunk/components/jetspeed-security/src/test/java/JETSPEED-INF/spring/JetspeedPrincipalManagerProviderOverride.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: portals/jetspeed-2/portal/trunk/components/jetspeed-security/src/test/java/JETSPEED-INF/spring/JetspeedPrincipalManagerProviderOverride.xml
------------------------------------------------------------------------------
svn:keywords = Id
Modified: portals/jetspeed-2/portal/trunk/components/jetspeed-security/src/test/java/org/apache/jetspeed/security/AbstractSecurityTestcase.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/trunk/components/jetspeed-security/src/test/java/org/apache/jetspeed/security/AbstractSecurityTestcase.java?rev=736315&r1=736314&r2=736315&view=diff
==============================================================================
--- portals/jetspeed-2/portal/trunk/components/jetspeed-security/src/test/java/org/apache/jetspeed/security/AbstractSecurityTestcase.java (original)
+++ portals/jetspeed-2/portal/trunk/components/jetspeed-security/src/test/java/org/apache/jetspeed/security/AbstractSecurityTestcase.java Wed Jan 21 06:18:01 2009
@@ -130,6 +130,9 @@
confList.add("transaction.xml");
confList.add("cache-test.xml");
confList.add("static-bean-references.xml");
+ // override the JetspeedPrincipalManagerProvider bean to get rid of
+ // dependency on SSO
+ confList.add("JETSPEED-INF/spring/JetspeedPrincipalManagerProviderOverride.xml");
return (String[]) confList.toArray(new String[1]);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org