From 042e7744bd34dbd6bb97e492626b76d3808a923c Mon Sep 17 00:00:00 2001 From: Alex Stuart Date: Wed, 1 Mar 2017 21:26:19 +0000 Subject: [PATCH] Add a test to the utility for replacing HideFromWAYF element with hide-from-disco Entity Category --- utilities/2017-02-27/README.md | 6 +++++- utilities/2017-02-27/test.xml | 20 ++++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 utilities/2017-02-27/test.xml diff --git a/utilities/2017-02-27/README.md b/utilities/2017-02-27/README.md index c56e45ef..acb2556c 100644 --- a/utilities/2017-02-27/README.md +++ b/utilities/2017-02-27/README.md @@ -9,7 +9,11 @@ Since there can only be a single Entity Attribute element in an entity fragment we first check that there are no hidden IdPs that already have an Entity Attributes element. If there are (and there are not too many) we edit these files manually. -Run the script on the entity fragment files: `xsltproc listHideFromWAYFandEA.xsl uk*.xml` +First, check that the XSLT will flag an entity fragment file that has an Entity +Attribute and the HideFromWAYF element. Run `xsltproc listHideFromWAYFandEA.xsl ./test.xml`. +This should report `https://idp.example.ac.uk/idp/shibboleth`. + +Then run the script on all entity fragment files: `xsltproc listHideFromWAYFandEA.xsl uk*.xml` ## 2. Replace HideFromWAYF element with hide-from-disco Entity Category diff --git a/utilities/2017-02-27/test.xml b/utilities/2017-02-27/test.xml new file mode 100644 index 00000000..8474b788 --- /dev/null +++ b/utilities/2017-02-27/test.xml @@ -0,0 +1,20 @@ + + + + + + http://refeds.org/category/research-and-scholarship + + + + +