Skip to content

Commit

Permalink
Add a verifyEdugain verb to the se_swamid channel, so that we can mon…
Browse files Browse the repository at this point in the history
…itor things in Jenkins.
  • Loading branch information
iay committed Jun 17, 2013
1 parent d74902b commit 79b53ba
Show file tree
Hide file tree
Showing 4 changed files with 86 additions and 1 deletion.
11 changes: 10 additions & 1 deletion build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -992,7 +992,16 @@
<CHANNEL.do verb="importEdugain" channel="no_feide"/>
<CHANNEL.do verb="importEdugain" channel="se_swamid"/>
</target>


<!--
flow.verifyEdugain.all
Verify the eduGAIN entities from all channels with this ability.
-->
<target name="flow.verifyEdugain.all">
<CHANNEL.do verb="verifyEdugain" channel="se_swamid"/>
</target>

<!--
flow.importEdugainRaw.all
Expand Down
35 changes: 35 additions & 0 deletions mdx/common-beans.xml
Original file line number Diff line number Diff line change
Expand Up @@ -644,6 +644,41 @@
</property>
</bean>

<!--
standardVerifyActions
Standard actions performed on any metadata import channel when verifying the
entities instead of importing them. The only difference between this and
standardImportActions is that an errorTerminatingFilter is used at the end
instead of an errorAnnouncingFilter.
Assumes that the collection has been acquired, had its signature validated, and
disassembled into individual entities.
-->
<bean id="standardVerifyActions" parent="CompositeStage"
p:id="standardVerifyActions">
<property name="composedStages">
<list>
<ref bean="populateItemIds"/>

<!--
The following three namespaces are always stripped because they are
specific to the UK registrar and can't be valid when imported from
some other source.
-->
<ref bean="stripElabNamespace"/>
<ref bean="stripUkfedlabelNamespace"/>
<ref bean="stripWayfNamespace"/>

<ref bean="cleanImport"/>
<ref bean="removeEmptyExtensions"/>
<ref bean="checkSchemas"/>
<ref bean="CHECK_imported"/>
<ref bean="errorTerminatingFilter"/>
</list>
</property>
</bean>

<!--
Basic EntitiesDescriptor assembler pipeline stage.
-->
Expand Down
32 changes: 32 additions & 0 deletions mdx/se_swamid/beans.xml
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,38 @@
</property>
</bean>

<!--
Verify the entities in the eduGAIN export aggregate.
-->
<bean id="se_swamid_verifyEdugain" parent="CompositeStage"
p:id="se_swamid_verifyEdugain">
<property name="composedStages">
<list>
<ref bean="se_swamid_edugainAggregate"/>

<!--
Check for fatal errors at the aggregate level:
missing or expired validUntil attribute
invalid signature
-->
<ref bean="check_validUntil"/>
<ref bean="se_swamid_checkSignature"/>
<ref bean="errorTerminatingFilter"/>

<ref bean="disassemble"/>

<ref bean="se_swamid_default_regauth"/>
<ref bean="se_swamid_check_regauth"/>

<ref bean="standardVerifyActions"/>

<!-- Strip all entity attributes from this source. -->
<ref bean="stripMdattrNamespace"/>

</list>
</property>
</bean>

<!--
Select primary export aggregate.
-->
Expand Down
9 changes: 9 additions & 0 deletions mdx/se_swamid/verbs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,15 @@
</property>
</bean>

<bean id="verifyEdugain" parent="SimplePipeline"
p:id="verifyEdugain">
<property name="stages">
<list>
<ref bean="se_swamid_verifyEdugain"/>
</list>
</property>
</bean>

<alias alias="import" name="importEdugain"/>
<alias alias="importRaw" name="importEdugainRaw"/>
</beans>

0 comments on commit 79b53ba

Please sign in to comment.