blob: ed5e274cd4e07b5ecd87477c2697ee61a191b33a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
test: mdtest idptest
tag: test
./scripts/bump-tag
bootstrap-trust:
./scripts/update-trust
mdtest:
@for dir in test-sp test-idp production-sp production-idp; do \
for x in `ls metadata/$$dir/*.xml` ; do \
xmllint --xinclude --nowarning --noout --path schema --schema schema.xsd $$x; \
XML=$$(sed 's;\(</*\)[a-z0-9]*:;\1;g' $$x | sed 's/xmlns="[^"]*"//'); \
echo $$XML | xmllint --xpath '/EntityDescriptor/Organization/OrganizationName' - 2>/dev/null | grep -vq "^$$" || echo " $$x missing OrganizationName" | sed 's/.*/[1;31m&[0m/' ; \
echo $$XML | xmllint --xpath '/EntityDescriptor/Organization/OrganizationDisplayName' - 2>/dev/null | grep -vq "^$$" || echo " $$x missing OrganizationDisplayName" | sed 's/.*/[1;31m&[0m/' ; \
echo $$XML | xmllint --xpath '/EntityDescriptor/Organization/OrganizationURL' - 2>/dev/null | grep -vq "^$$" || echo " $$x missing OrganizationURL" | sed 's/.*/[1;31m&[0m/' ; \
echo $$XML | xmllint --xpath "/EntityDescriptor/ContactPerson[@contactType='technical']" - 2>/dev/null | grep -vq "^$$" || echo " $$x: Missing ContactPerson contactType='technical'." | sed 's/.*/[1;31m&[0m/' ; \
echo $$XML | xmllint --xpath "/EntityDescriptor/Extensions/RegistrationInfo" - 2>/dev/null | grep -vq "^$$" || echo " $$x: Missing RegistrationInfo." | sed 's/.*/[1;31m&[0m/' ; \
if echo $$XML | xmllint --xpath "/EntityDescriptor/SPSSODescriptor" - 2>/dev/null | grep -qE 'SPSSODescriptor'; then \
echo $$XML | xmllint --xpath "/EntityDescriptor/SPSSODescriptor/Extensions/UIInfo/DisplayName" - 2>/dev/null | grep -vq "^$$" || echo " $$x: Missing mdui:DisplayName." | sed 's/.*/[1;31m&[0m/' ; \
echo $$XML | xmllint --xpath "/EntityDescriptor/SPSSODescriptor/Extensions/UIInfo/InformationURL" - 2>/dev/null | grep -vq "^$$" || echo " $$x: Missing mdui:InformationURL." | sed 's/.*/[1;31m&[0m/' ; \
else \
echo $$XML | xmllint --xpath "/EntityDescriptor/IDPSSODescriptor/Extensions/UIInfo/DisplayName" - 2>/dev/null | grep -vq "^$$" || echo " $$x: Missing mdui:DisplayName." | sed 's/.*/[1;31m&[0m/' ; \
echo $$XML | xmllint --xpath "/EntityDescriptor/IDPSSODescriptor/Extensions/UIInfo/InformationURL" - 2>/dev/null | grep -vq "^$$" || echo " $$x: Missing mdui:InformationURL." | sed 's/.*/[1;31m&[0m/' ; \
fi; \
if grep -q " " $$x ; then \
echo " $$x" | sed 's/.*/[1;31m&[0m/' ;\
fi;\
done \
done
idptest:
@if (grep -rq IDPSSODescriptor metadata/*-sp); then echo "Hittade en IDP band SP:na !!!"; exit 1; fi
update: update-git
./scripts/verify-tag && ./scripts/update-trust && rsync -avz --exclude fidus-interfederations-prod/*.xml --exclude fidus-interfederations-prod/last_aggregate.ts --exclude fidus-interfederations-test/*.xml --exclude fidus-interfederations-test/last_aggregate.ts --delete metadata/ /opt/metadata/
update-git:
git checkout master && git reset --hard && git pull
|