tests: Check more network XMLs for schema compliance

This revealed bugs in RNG schema for /network/dns/srv.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
This commit is contained in:
Jiri Denemark 2016-12-13 13:45:50 +01:00
parent 15398e6a4c
commit 8f448d619a
2 changed files with 9 additions and 1 deletions

View File

@ -283,13 +283,21 @@
</attribute> </attribute>
<optional> <optional>
<attribute name="domain"><ref name="dnsName"/></attribute> <attribute name="domain"><ref name="dnsName"/></attribute>
</optional>
<optional>
<attribute name="target"><text/></attribute> <attribute name="target"><text/></attribute>
</optional>
<optional>
<attribute name="port"> <attribute name="port">
<ref name="unsignedShort"/> <ref name="unsignedShort"/>
</attribute> </attribute>
</optional>
<optional>
<attribute name="priority"> <attribute name="priority">
<ref name="unsignedShort"/> <ref name="unsignedShort"/>
</attribute> </attribute>
</optional>
<optional>
<attribute name="weight"> <attribute name="weight">
<ref name="unsignedShort"/> <ref name="unsignedShort"/>
</attribute> </attribute>

View File

@ -208,7 +208,7 @@ mymain(void)
"domainsnapshotxml2xmlout"); "domainsnapshotxml2xmlout");
DO_TEST("interface.rng", "interfaceschemadata"); DO_TEST("interface.rng", "interfaceschemadata");
DO_TEST("network.rng", "../src/network", "networkxml2xmlin", DO_TEST("network.rng", "../src/network", "networkxml2xmlin",
"networkxml2xmlout"); "networkxml2xmlout", "networkxml2confdata");
DO_TEST("nodedev.rng", "nodedevschemadata"); DO_TEST("nodedev.rng", "nodedevschemadata");
DO_TEST("nwfilter.rng", "nwfilterxml2xmlout"); DO_TEST("nwfilter.rng", "nwfilterxml2xmlout");
DO_TEST("secret.rng", "secretxml2xmlin"); DO_TEST("secret.rng", "secretxml2xmlin");