libvirt/tests/qemublocktestdata/xml2json/network-http-noopts.json
Peter Krempa 3b06103e69 qemuBlockGetBackingStoreString: Properly handle 'http/s' with cookies and others
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>
2020-03-24 14:17:48 +01:00

15 lines
265 B
JSON

{
"node-name": "node-b-f",
"read-only": false,
"driver": "qcow2",
"file": "node-a-s",
"backing": null
}
{
"driver": "https",
"url": "https://host1.example.com:443/something",
"node-name": "node-a-s",
"auto-read-only": true,
"discard": "unmap"
}