diff options
author | Björn Mattsson <Bjorn.Mattsson@bth.se> | 2018-04-12 08:39:15 +0200 |
---|---|---|
committer | Björn Mattsson <Bjorn.Mattsson@bth.se> | 2018-04-12 08:39:15 +0200 |
commit | 06b56340d382a51b5c97866d792d2b964e88310b (patch) | |
tree | 6adcba856abb131ff6edd955c3faf5197011a629 /Makefile | |
parent | f8e564153aef4836a0fb0beea0bd4cf4ba64511c (diff) |
Added test for unwanted ADFS data in xml. Tested on fs.test.ad.liu.se
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -221,6 +221,21 @@ testBadStrings: @echo "Check for bad strings in metadata" @for x in `find $(SRCDIRS) -name \*.xml`; do grep -E 'ServiceName xml:lang="[^"]*"/>' $$x | sed 's/^/ /' ; done | grep . && exit 1 || exit 0 +testRoleDescriptor: + @echo "Check for RoleDescriptor that should be removed" + @for x in `find $(SRCDIRS) -name \*.xml`; do \ + grep -EH 'RoleDescriptor.*xsi:type="fed:(ApplicationServiceType|SecurityTokenServiceType)"' $$x | \ + sed -e 's/^/ /' -e 's/xmlns.*xsi:type="fed:/xsi:type="fed:/' -e 's/ protocol.*>/>/' -e 's/.*/[1;31m&[0m/' ; \ + done | grep . && echo "Please remove" + +testAttributeInIdP: + @echo "Check for Attribute inside IDPSSODescriptor" + @for x in `find $(SRCDIRS) -name \*.xml`; do \ + if cat $$x | sed 's;\(</*\)[a-z0-9]*:;\1;g' | sed 's/xmlns="[^"]*"//' | xmllint --xpath "/EntityDescriptor/IDPSSODescriptor" - 2>/dev/null | grep -q " <Attribute" ; then \ + echo " $$x" | sed 's/.*/[1;31m&[0m/' ;\ + fi;\ + done | grep . && echo "Please remove this Attributes" + test: syntaxtest testMDUI testOrgData testEntCat testSimpleSign testALlevel testEduGAINchecks testRefedsRnS testGeantCoCo testMetadataUsage testBadStrings testIdPinSP deeptest: test testMDUIreach |