mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-25 15:15:25 +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>
18 lines
369 B
JSON
18 lines
369 B
JSON
(
|
|
source only properties:
|
|
{
|
|
"driver": "https",
|
|
"url": "https://host1.example.com:443/something",
|
|
"sslverify": false,
|
|
"cookie": "test=123456; blurb=here"
|
|
}
|
|
backing store string:
|
|
json:{"file":{
|
|
"driver": "https",
|
|
"url": "https://host1.example.com:443/something",
|
|
"sslverify": false,
|
|
"cookie": "test=123456; blurb=here"
|
|
}
|
|
}
|
|
)
|