[PATCH 3/3] snapshots: Test snapshot disk type specification

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

 



Amend tests to check parsing of the various new disk types that can now
be specified.
---
 tests/domainsnapshotxml2xmlin/disk_snapshot.xml  | 18 ++++++++++++++++++
 tests/domainsnapshotxml2xmlout/disk_snapshot.xml | 18 ++++++++++++++++++
 2 files changed, 36 insertions(+)

diff --git a/tests/domainsnapshotxml2xmlin/disk_snapshot.xml b/tests/domainsnapshotxml2xmlin/disk_snapshot.xml
index ee6b46a..aa1522a 100644
--- a/tests/domainsnapshotxml2xmlin/disk_snapshot.xml
+++ b/tests/domainsnapshotxml2xmlin/disk_snapshot.xml
@@ -12,5 +12,23 @@
     <disk name='hde' snapshot='external'>
       <source file='/path/to/new'/>
     </disk>
+    <disk name='hde' snapshot='external' type='file'>
+      <source file='/path/to/new2'/>
+    </disk>
+    <disk name='hdf' snapshot='external' type='block'>
+      <source dev='/path/to/new3'/>
+    </disk>
+    <disk name='hdg' snapshot='external' type='network'>
+      <source protocol='gluster' name='volume/path'>
+        <host name='host' port='1234'/>
+      </source>
+    </disk>
+    <disk name='hdh' snapshot='external' type='network'>
+      <source protocol='rbd' name='name'>
+        <host name='host' port='1234'/>
+        <host name='host2' port='1234' transport='rdma'/>
+        <host name='host3' port='1234'/>
+      </source>
+    </disk>
   </disks>
 </domainsnapshot>
diff --git a/tests/domainsnapshotxml2xmlout/disk_snapshot.xml b/tests/domainsnapshotxml2xmlout/disk_snapshot.xml
index 1a1fc02..316df43 100644
--- a/tests/domainsnapshotxml2xmlout/disk_snapshot.xml
+++ b/tests/domainsnapshotxml2xmlout/disk_snapshot.xml
@@ -11,5 +11,23 @@
     <disk name='hde' snapshot='external'>
       <source file='/path/to/new'/>
     </disk>
+    <disk name='hde' snapshot='external' type='file'>
+      <source file='/path/to/new2'/>
+    </disk>
+    <disk name='hdf' snapshot='external' type='block'>
+      <source dev='/path/to/new3'/>
+    </disk>
+    <disk name='hdg' snapshot='external' type='network'>
+      <source protocol='gluster' name='volume/path'>
+        <host name='host' port='1234'/>
+      </source>
+    </disk>
+    <disk name='hdh' snapshot='external' type='network'>
+      <source protocol='rbd' name='name'>
+        <host name='host' port='1234'/>
+        <host name='host2' port='1234' transport='rdma'/>
+        <host name='host3' port='1234'/>
+      </source>
+    </disk>
   </disks>
 </domainsnapshot>
-- 
1.8.4.3

--
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]