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;\(/dev/null | grep -vq "^$$" || echo " $$x missing OrganizationName" | sed 's/.*/&/' ; \ echo $$XML | xmllint --xpath '/EntityDescriptor/Organization/OrganizationDisplayName' - 2>/dev/null | grep -vq "^$$" || echo " $$x missing OrganizationDisplayName" | sed 's/.*/&/' ; \ echo $$XML | xmllint --xpath '/EntityDescriptor/Organization/OrganizationURL' - 2>/dev/null | grep -vq "^$$" || echo " $$x missing OrganizationURL" | sed 's/.*/&/' ; \ echo $$XML | xmllint --xpath "/EntityDescriptor/ContactPerson[@contactType='technical']" - 2>/dev/null | grep -vq "^$$" || echo " $$x: Missing ContactPerson contactType='technical'." | sed 's/.*/&/' ; \ echo $$XML | xmllint --xpath "/EntityDescriptor/Extensions/RegistrationInfo" - 2>/dev/null | grep -vq "^$$" || echo " $$x: Missing RegistrationInfo." | sed 's/.*/&/' ; \ 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/.*/&/' ; \ echo $$XML | xmllint --xpath "/EntityDescriptor/SPSSODescriptor/Extensions/UIInfo/InformationURL" - 2>/dev/null | grep -vq "^$$" || echo " $$x: Missing mdui:InformationURL." | sed 's/.*/&/' ; \ else \ echo $$XML | xmllint --xpath "/EntityDescriptor/IDPSSODescriptor/Extensions/UIInfo/DisplayName" - 2>/dev/null | grep -vq "^$$" || echo " $$x: Missing mdui:DisplayName." | sed 's/.*/&/' ; \ echo $$XML | xmllint --xpath "/EntityDescriptor/IDPSSODescriptor/Extensions/UIInfo/InformationURL" - 2>/dev/null | grep -vq "^$$" || echo " $$x: Missing mdui:InformationURL." | sed 's/.*/&/' ; \ fi; \ if grep -q " " $$x ; then \ echo " $$x" | sed 's/.*/&/' ;\ 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