]> xenbits.xensource.com Git - libvirt.git/commitdiff
tests: Check more network XMLs for schema compliance
authorJiri Denemark <jdenemar@redhat.com>
Tue, 13 Dec 2016 12:45:50 +0000 (13:45 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Wed, 14 Dec 2016 07:50:15 +0000 (08:50 +0100)
This revealed bugs in RNG schema for /network/dns/srv.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
docs/schemas/network.rng
tests/virschematest.c

index 1a18e64b24f99548f43ef8d01a85c99463d92cae..9d8c803ff5945793b4bffdfe5adb6bcd91028e8b 100644 (file)
                   </attribute>
                   <optional>
                     <attribute name="domain"><ref name="dnsName"/></attribute>
+                  </optional>
+                  <optional>
                     <attribute name="target"><text/></attribute>
+                  </optional>
+                  <optional>
                     <attribute name="port">
                       <ref name="unsignedShort"/>
                     </attribute>
+                  </optional>
+                  <optional>
                     <attribute name="priority">
                       <ref name="unsignedShort"/>
                     </attribute>
+                  </optional>
+                  <optional>
                     <attribute name="weight">
                       <ref name="unsignedShort"/>
                     </attribute>
index b31a5bca916b7b8e3e3869458fcc719ed55d3804..faf66d6427dad234f5799fd8c210e341b689fda7 100644 (file)
@@ -208,7 +208,7 @@ mymain(void)
             "domainsnapshotxml2xmlout");
     DO_TEST("interface.rng", "interfaceschemadata");
     DO_TEST("network.rng", "../src/network", "networkxml2xmlin",
-            "networkxml2xmlout");
+            "networkxml2xmlout", "networkxml2confdata");
     DO_TEST("nodedev.rng", "nodedevschemadata");
     DO_TEST("nwfilter.rng", "nwfilterxml2xmlout");
     DO_TEST("secret.rng", "secretxml2xmlin");