Skip to content
main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
inc-meta/tests/manual/ukf-meta-248/
inc-meta/tests/manual/ukf-meta-248/

Latest commit

To mitigate against https://issues.shibboleth.net/jira/browse/IDP-1647,
check for elements in the md namespace which have the same xml:lang value.
There are already checks for the mdui and mdrpi namespaces.

See ukf/ukf-meta#248 for details
91c978a

Git stats

Files

Permalink
Failed to load latest commit information.

Tests for duplicate xml:lang

Ensuring well-formed:

for i in *xml; do xmllint --noout $i; done

Tests for existing checks:

xsltproc ../../../mdx/_rules/check_mdui.xsl test.xml 
[ERROR] non-unique lang values on mdui:DisplayName elements
[ERROR] non-unique lang values on mdui:Description elements
[ERROR] non-unique lang values on mdui:Keywords elements
$ xsltproc ../../../mdx/_rules/check_mdrpi.xsl test.xml 
[ERROR] non-unique lang values on mdrpi:RegistrationPolicy elements

New test should fail on md:ServiceName and md:ServiceDescription:

xsltproc ../../../mdx/_rules/check_saml2_lang.xsl AttributeConsumingService-fail.xml
[ERROR] non-unique lang values on ServiceName elements
[ERROR] non-unique lang values on ServiceDescription elements

New test should fail on md:Organization and md:OrganizationDisplayName

xsltproc ../../../mdx/_rules/check_saml2_lang.xsl Organization-fail.xml
[ERROR] non-unique lang values on OrganizationName elements
[ERROR] non-unique lang values on OrganizationDisplayName elements

Should pass on new tests:

xsltproc ../../../mdx/_rules/check_saml2_lang.xsl AttributeConsumingService-pass.xml
xsltproc ../../../mdx/_rules/check_saml2_lang.xsl Organization-pass.xml

test-sp.xml is a fragment file that is intended to fail on import