Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
No longer validate the test or export aggregates using metadatatool.
Browse files Browse the repository at this point in the history
This means that we are no longer validating them for Shibboleth 1.3 IdP compatibility, primarily around the limit to the number of namespaces which can be in scope at one time. This allows us to relax that constraint for the test and export aggregates.
  • Loading branch information
iay committed Jun 3, 2014
1 parent dbf5ad0 commit b8f567f
Showing 1 changed file with 50 additions and 17 deletions.
67 changes: 50 additions & 17 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -286,18 +286,17 @@

<!--
Verify a metadata file held on the master distribution site.
Verification is performed using only xmlsectool. This should be
used when compatibility with the Shibboleth 1.3 IdP is not a
concern.
-->
<macrodef name="VFY.remote">
<attribute name="i"/>
<sequential>
<echo>Verifying @{i}...</echo>
<delete file="${xml.dir}/temp.xml" quiet="true" verbose="false"/>
<get src="${remote.url}/@{i}" dest="${xml.dir}/temp.xml"/>

<!--
Verify using metadatatool.
-->
<MDT.VFY.uk i="temp.xml"/>

<!--
Verify using xmlsectool.
Expand All @@ -311,16 +310,47 @@
</sequential>
</macrodef>

<!--
Verify a metadata file held on the master distribution site.
Verification is performed using both metadatatool and xmlsectool.
This should be used when the file being verified must be compatible
with the Shibboleth 1.3 IdP.
-->
<macrodef name="VFY.remote.both">
<attribute name="i"/>
<sequential>
<echo>Verifying @{i}...</echo>
<delete file="${xml.dir}/temp.xml" quiet="true" verbose="false"/>
<get src="${remote.url}/@{i}" dest="${xml.dir}/temp.xml"/>

<!--
Verify using metadatatool.
-->
<MDT.VFY.uk i="temp.xml"/>

<!--
Verify using xmlsectool.
-->
<XMLSECTOOL.VFY.uk i="temp.xml"/>

<!--
Delete the temporary file.
-->
<delete file="${xml.dir}/temp.xml" quiet="true" verbose="false"/>
</sequential>
</macrodef>

<!--
Verify metadata files held on the master distribution site.
-->
<target name="verify.remote.metadata" depends="select.remote.host">
<echo>Verifying metadata held at ${remote.url}</echo>
<VFY.remote i="${md.prod.signed}"/>
<VFY.remote i="${md.wayf.signed}"/>
<VFY.remote i="${md.cdsall.signed}"/>
<VFY.remote.both i="${md.prod.signed}"/>
<VFY.remote.both i="${md.wayf.signed}"/>
<VFY.remote.both i="${md.cdsall.signed}"/>
<VFY.remote i="${md.test.signed}"/>
<VFY.remote i="${md.back.signed}"/>
<VFY.remote.both i="${md.back.signed}"/>
<VFY.remote i="${md.export.signed}"/>
<echo>Verification completed.</echo>
</target>
Expand Down Expand Up @@ -762,9 +792,12 @@
</target>

<!--
Select the tool to verify UK federation metadata with.
Verify UK federation metadata with both verification tools.
This should be used when the metadata needs to be compatible
with the Shibboleth 1.3 IdP.
-->
<macrodef name="VFY.uk">
<macrodef name="VFY.uk.both">
<attribute name="i"/>
<sequential>
<!--
Expand All @@ -785,22 +818,22 @@
-->
<target name="verify">
<echo>Verifying signed UK metadata.</echo>
<VFY.uk i="${md.prod.signed}"/>
<VFY.uk.both i="${md.prod.signed}"/>

<echo>Verifying signed UK WAYF metadata.</echo>
<VFY.uk i="${md.wayf.signed}"/>
<VFY.uk.both i="${md.wayf.signed}"/>

<echo>Verifying signed UK CDS full metadata.</echo>
<VFY.uk i="${md.cdsall.signed}"/>
<VFY.uk.both i="${md.cdsall.signed}"/>

<echo>Verifying signed UK test metadata.</echo>
<VFY.uk i="${md.test.signed}"/>
<XMLSECTOOL.VFY.uk i="${md.test.signed}"/>

<echo>Verifying signed UK export metadata.</echo>
<VFY.uk i="${md.export.signed}"/>
<XMLSECTOOL.VFY.uk i="${md.export.signed}"/>

<echo>Verifying signed UK fallback metadata.</echo>
<VFY.uk i="${md.back.signed}"/>
<VFY.uk.both i="${md.back.signed}"/>

<echo>Verification completed.</echo>
</target>
Expand Down

0 comments on commit b8f567f

Please sign in to comment.