Skip to content

Commit

Permalink
Support both production and test aggregates from eduGAIN.
Browse files Browse the repository at this point in the history
  • Loading branch information
iay committed Jun 10, 2011
1 parent 4818282 commit cb60225
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 3 deletions.
6 changes: 6 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1133,6 +1133,12 @@
<echo>Completed eduGAIN import flow.</echo>
</target>

<target name="flow.edugain.test.import">
<echo>Running eduGAIN test import flow.</echo>
<MDA config="${edugain.dir}/edugain-test-import.xml" out="${edugain.dir}/test-imported.xml"/>
<echo>Completed eduGAIN test import flow.</echo>
</target>

<!--
*********************************
*** ***
Expand Down
20 changes: 18 additions & 2 deletions mdx/edugain/edugain-beans.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,24 @@
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.0.xsd">

<bean id="fetchEduGainExportAggregate" class="net.shibboleth.metadata.dom.DomHttpSourceStage">
<property name="id" value="fetchEduGainExportAggregate"/>
<!--
fetchEduGainTestAggregate
Fetches the eduGAIN test aggregate.
-->
<bean id="fetchEduGainTestAggregate" class="net.shibboleth.metadata.dom.DomHttpSourceStage">
<property name="id" value="fetchEduGainTestAggregate"/>
<property name="parserPool" ref="parserPool"/>
<property name="sourceUrl" value="http://mds-test.edugain.org"/>
</bean>

<!--
fetchEduGainAggregate
Fetches the eduGAIN production aggregate.
-->
<bean id="fetchEduGainAggregate" class="net.shibboleth.metadata.dom.DomHttpSourceStage">
<property name="id" value="fetchEduGainAggregate"/>
<property name="parserPool" ref="parserPool"/>
<property name="sourceUrl" value="http://mds.edugain.org"/>
</bean>
Expand Down
2 changes: 1 addition & 1 deletion mdx/edugain/edugain-import.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<property name="id" value="pipeline"/>
<property name="stages">
<list>
<ref bean="fetchEduGainExportAggregate"/>
<ref bean="fetchEduGainAggregate"/>
<ref bean="checkEdugainSignature"/>
<ref bean="errorAnnouncingFilter"/><!-- should be fatal -->
<ref bean="disassemble"/>
Expand Down
38 changes: 38 additions & 0 deletions mdx/edugain/edugain-test-import.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Import pipeline for test metadata from eduGAIN.
-->
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:util="http://www.springframework.org/schema/util"
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-3.0.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.0.xsd">

<!--
Import commonly used beans.
-->
<import resource="../common-beans.xml"/>

<!--
Import eduGAIN-specific beans.
-->
<import resource="edugain-beans.xml"/>

<bean id="pipeline" class="net.shibboleth.metadata.pipeline.SimplePipeline">
<property name="id" value="pipeline"/>
<property name="stages">
<list>
<ref bean="fetchEduGainTestAggregate"/>
<ref bean="checkEdugainSignature"/>
<ref bean="errorAnnouncingFilter"/><!-- should be fatal -->
<ref bean="disassemble"/>

<ref bean="standardImportActions"/>

<ref bean="standardImportTail"/>
</list>
</property>
</bean>

</beans>

0 comments on commit cb60225

Please sign in to comment.