From dd0dda2e4a80bacb78125e0236e93590f3c4dc5d Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Fri, 10 Jan 2014 10:40:01 -0700 Subject: [PATCH] schema: fix idmap validation When idmap was added to LXC, we forgot to cover it in the testsuite. The schema was missing an 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 element, and support interleaves. * tests/lxcxml2xmldata/lxc-idmap.xml: New file. * tests/lxcxml2xmltest.c (mymain): Test it. Signed-off-by: Eric Blake --- docs/schemas/domaincommon.rng | 58 ++++++++++++++++-------------- tests/lxcxml2xmldata/lxc-idmap.xml | 38 ++++++++++++++++++++ tests/lxcxml2xmltest.c | 1 + 3 files changed, 71 insertions(+), 26 deletions(-) create mode 100644 tests/lxcxml2xmldata/lxc-idmap.xml diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng index 86a60c9fb3..a69f6b6317 100644 --- a/docs/schemas/domaincommon.rng +++ b/docs/schemas/domaincommon.rng @@ -506,32 +506,38 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +