]> git.ipfire.org Git - thirdparty/libvirt.git/commit
schema: fix idmap validation
authorEric Blake <eblake@redhat.com>
Fri, 10 Jan 2014 17:40:01 +0000 (10:40 -0700)
committerEric Blake <eblake@redhat.com>
Fri, 10 Jan 2014 17:54:14 +0000 (10:54 -0700)
commitdd0dda2e4a80bacb78125e0236e93590f3c4dc5d
tree9aa60aaa68f362b0ad86d1cc652fc3879e49bc42
parent558ffad55efda22856b65da8cd991cb315822bbf
schema: fix idmap validation

When idmap was added to LXC, we forgot to cover it in the testsuite.
The schema was missing an <element> layer, and as a result,
virt-xml-validate was failing on valid dumpxml output.

Reported by Eduard - Gabriel Munteanu on IRC.

* docs/schemas/domaincommon.rng (idmap): Include <idmap> element,
and support interleaves.
* tests/lxcxml2xmldata/lxc-idmap.xml: New file.
* tests/lxcxml2xmltest.c (mymain): Test it.

Signed-off-by: Eric Blake <eblake@redhat.com>
docs/schemas/domaincommon.rng
tests/lxcxml2xmldata/lxc-idmap.xml [new file with mode: 0644]
tests/lxcxml2xmltest.c