mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-06 05:11:14 +00:00
3b06103e69
Format cookies into the backing store string without encryption as they will not be visible on the command line when formatting a 'target' only string. In cases when cookies or other options are used we must use the JSON format rather than pure URI. Add tests to validate the scenario. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
21 lines
570 B
XML
21 lines
570 B
XML
<disk type='network' device='disk'>
|
|
<driver name='qemu' type='qcow2'/>
|
|
<source protocol='https' name='/something'>
|
|
<host name='host1.example.com'/>
|
|
<ssl verify='no'/>
|
|
<cookies>
|
|
<cookie name='test'>123456</cookie>
|
|
<cookie name='blurb'>here</cookie>
|
|
</cookies>
|
|
<privateData>
|
|
<nodenames>
|
|
<nodename type='storage' name='node-a-s'/>
|
|
<nodename type='format' name='node-b-f'/>
|
|
</nodenames>
|
|
</privateData>
|
|
</source>
|
|
<backingStore/>
|
|
<target dev='vda' bus='virtio'/>
|
|
<alias name='virtio-disk0'/>
|
|
</disk>
|