Re: [PATCH v2 1/5] tests: Check more network XMLs for schema compliance

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12/13/2016 08:52 AM, Jiri Denemark wrote:
This revealed bugs in RNG schema for /network/dns/srv.

ACK.



Signed-off-by: Jiri Denemark <jdenemar@xxxxxxxxxx>
---
  docs/schemas/network.rng | 8 ++++++++
  tests/virschematest.c    | 2 +-
  2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/docs/schemas/network.rng b/docs/schemas/network.rng
index 1a18e64b2..9d8c803ff 100644
--- a/docs/schemas/network.rng
+++ b/docs/schemas/network.rng
@@ -283,13 +283,21 @@
                    </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>
diff --git a/tests/virschematest.c b/tests/virschematest.c
index b31a5bca9..faf66d642 100644
--- a/tests/virschematest.c
+++ b/tests/virschematest.c
@@ -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");


--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]
  Powered by Linux