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:
Peter Krempa
2017-06-26 19:42:06 +02:00
parent 6d7cdec63d
commit ffdf532328
4 changed files with 35 additions and 0 deletions

View 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"
}
}

View File

@@ -0,0 +1,13 @@
{
"driver": "raw",
"file": {
"server": {
"host": "10.10.10.10",
"port": "7000",
"type": "inet"
},
"tag": "",
"driver": "sheepdog",
"vdi": "Alice"
}
}