mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
tests: Validate that JSON deflattening fixed nested json pseudo-protocol strings
Sheepdog and possibly others use nested objects for network server and thus could be specified in a way that libvirt would not parse. Validates that https://bugzilla.redhat.com/show_bug.cgi?id=1464821 is fixed properly.
This commit is contained in:
11
tests/virjsondata/deflatten-qemu-sheepdog-in.json
Normal file
11
tests/virjsondata/deflatten-qemu-sheepdog-in.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"driver": "raw",
|
||||
"file": {
|
||||
"server.host": "10.10.10.10",
|
||||
"server.port": "7000",
|
||||
"tag": "",
|
||||
"driver": "sheepdog",
|
||||
"server.type": "inet",
|
||||
"vdi": "Alice"
|
||||
}
|
||||
}
|
||||
13
tests/virjsondata/deflatten-qemu-sheepdog-out.json
Normal file
13
tests/virjsondata/deflatten-qemu-sheepdog-out.json
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"driver": "raw",
|
||||
"file": {
|
||||
"server": {
|
||||
"host": "10.10.10.10",
|
||||
"port": "7000",
|
||||
"type": "inet"
|
||||
},
|
||||
"tag": "",
|
||||
"driver": "sheepdog",
|
||||
"vdi": "Alice"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user