[PATCH 1/2] tests: storagepoolxml2xmltest: Fix pool-rbd test

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

 



This test failed for two reasons:
* The uuid was missing from the input file
* The output file had the <name> in a different place from the actual output
---
 tests/storagepoolxml2xmlin/pool-rbd.xml  | 1 +
 tests/storagepoolxml2xmlout/pool-rbd.xml | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/storagepoolxml2xmlin/pool-rbd.xml b/tests/storagepoolxml2xmlin/pool-rbd.xml
index 056ba6e..f3a1c26 100644
--- a/tests/storagepoolxml2xmlin/pool-rbd.xml
+++ b/tests/storagepoolxml2xmlin/pool-rbd.xml
@@ -1,5 +1,6 @@
 <pool type='rbd'>
   <name>ceph</name>
+  <uuid>47c1faee-0207-e741-f5ae-d9b019b98fe2</uuid>
   <source>
     <name>rbd</name>
     <host name='localhost' port='6789'/>
diff --git a/tests/storagepoolxml2xmlout/pool-rbd.xml b/tests/storagepoolxml2xmlout/pool-rbd.xml
index 4fe2fce..3cdf0a0 100644
--- a/tests/storagepoolxml2xmlout/pool-rbd.xml
+++ b/tests/storagepoolxml2xmlout/pool-rbd.xml
@@ -5,9 +5,9 @@
   <allocation unit='bytes'>0</allocation>
   <available unit='bytes'>0</available>
   <source>
-    <name>rbd</name>
     <host name='localhost' port='6789'/>
     <host name='localhost' port='6790'/>
+    <name>rbd</name>
     <auth type='ceph' username='admin'>
       <secret uuid='2ec115d7-3a88-3ceb-bc12-0ac909a6fd87'/>
     </auth>
-- 
2.7.2

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