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

[libvirt] [PATCH 3/3] caps: add tests and documentation for hv_user and hv_group



Signed-off-by: Giuseppe Scrivano <gscrivan redhat com>
---
 docs/schemas/capability.rng               | 10 ++++++++++
 tests/capabilityschemadata/caps-test2.xml |  4 ++++
 2 files changed, 14 insertions(+)

diff --git a/docs/schemas/capability.rng b/docs/schemas/capability.rng
index 65c7c72..1a65142 100644
--- a/docs/schemas/capability.rng
+++ b/docs/schemas/capability.rng
@@ -225,6 +225,16 @@
       <optional>
         <ref name='features'/>
       </optional>
+      <optional>
+        <element name='hv_user'>
+          <ref name='genericName'/>
+        </element>
+      </optional>
+      <optional>
+        <element name='hv_group'>
+          <ref name='genericName'/>
+        </element>
+      </optional>
     </element>
   </define>
 
diff --git a/tests/capabilityschemadata/caps-test2.xml b/tests/capabilityschemadata/caps-test2.xml
index a99c1b8..4a57e44 100644
--- a/tests/capabilityschemadata/caps-test2.xml
+++ b/tests/capabilityschemadata/caps-test2.xml
@@ -76,6 +76,8 @@
       <acpi default='on' toggle='yes'/>
       <apic default='on' toggle='no'/>
     </features>
+    <hv_user>foo</hv_user>
+    <hv_group>bar</hv_group>
   </guest>
 
   <guest>
@@ -117,6 +119,8 @@
       <acpi default='on' toggle='yes'/>
       <apic default='on' toggle='no'/>
     </features>
+    <hv_user>ba-r</hv_user>
+    <hv_group>baz_</hv_group>
   </guest>
 
 </capabilities>
-- 
1.8.3.1


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