mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
util: storage: adapt to changes in JSON format for ssh
Since qemu 2.9 the options changed from a monolithic string into fine grained options for the json pseudo-protocol object.
This commit is contained in:
@@ -1501,6 +1501,17 @@ mymain(void)
|
||||
"<source protocol='ssh' name='blah'>\n"
|
||||
" <host name='example.org' port='6000'/>\n"
|
||||
"</source>\n");
|
||||
TEST_BACKING_PARSE("json:{\"file\":{\"driver\":\"ssh\","
|
||||
"\"path\":\"blah\","
|
||||
"\"server\":{ \"host\":\"example.org\","
|
||||
"\"port\":\"6000\""
|
||||
"},"
|
||||
"\"user\":\"user\""
|
||||
"}"
|
||||
"}",
|
||||
"<source protocol='ssh' name='blah'>\n"
|
||||
" <host name='example.org' port='6000'/>\n"
|
||||
"</source>\n");
|
||||
TEST_BACKING_PARSE("json:{\"file.driver\":\"rbd\","
|
||||
"\"file.filename\":\"rbd:testshare:id=asdf:mon_host=example.com\""
|
||||
"}",
|
||||
|
||||
Reference in New Issue
Block a user