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

[PATCH 1/3] qemustatusxml2xml: backup-pull: Test private data formatting/parsing



Modify the test case to enable TLS and add private data containing
aliases of objects corresponding to a TLS setup.

Signed-off-by: Peter Krempa <pkrempa redhat com>
---
 tests/qemustatusxml2xmldata/backup-pull-in.xml | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/tests/qemustatusxml2xmldata/backup-pull-in.xml b/tests/qemustatusxml2xmldata/backup-pull-in.xml
index 1db978a3ac..faaed67e38 100644
--- a/tests/qemustatusxml2xmldata/backup-pull-in.xml
+++ b/tests/qemustatusxml2xmldata/backup-pull-in.xml
@@ -254,12 +254,18 @@
   <backups>
     <domainbackup mode='pull'>
       <incremental>12345</incremental>
-      <server transport='tcp' name='localhost' port='10809'/>
+      <server transport='tcp' tls='yes' name='localhost' port='10809'/>
       <disks>
         <disk name='vda' backup='yes' state='running' type='file'>
           <scratch file='/path/to/file/'/>
         </disk>
       </disks>
+      <privateData>
+        <objects>
+          <secret type='tlskey' alias='testalias-secret'/>
+          <TLSx509 alias='testalias-tlsx509'/>
+        </objects>
+      </privateData>
     </domainbackup>
   </backups>
   <domain type='kvm' id='4'>
-- 
2.26.2


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