mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-02 04:15:46 +00:00
virstoragetest: Add test case for NBD over unix socket with new syntax
Use the new syntax which uses the 'UnixSocket' type in qemu. Signed-off-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
a3a3de9bc7
commit
d70d07eef8
@ -1494,6 +1494,15 @@ mymain(void)
|
|||||||
"<source protocol='nbd' name='blah'>\n"
|
"<source protocol='nbd' name='blah'>\n"
|
||||||
" <host name='example.org' port='6000'/>\n"
|
" <host name='example.org' port='6000'/>\n"
|
||||||
"</source>\n");
|
"</source>\n");
|
||||||
|
TEST_BACKING_PARSE("json:{\"file\":{\"driver\":\"nbd\","
|
||||||
|
"\"server\": { \"type\":\"unix\","
|
||||||
|
"\"path\":\"/path/socket\""
|
||||||
|
"}"
|
||||||
|
"}"
|
||||||
|
"}",
|
||||||
|
"<source protocol='nbd'>\n"
|
||||||
|
" <host transport='unix' socket='/path/socket'/>\n"
|
||||||
|
"</source>\n");
|
||||||
TEST_BACKING_PARSE("json:{\"file\":{\"driver\":\"ssh\","
|
TEST_BACKING_PARSE("json:{\"file\":{\"driver\":\"ssh\","
|
||||||
"\"host\":\"example.org\","
|
"\"host\":\"example.org\","
|
||||||
"\"port\":\"6000\","
|
"\"port\":\"6000\","
|
||||||
|
Loading…
Reference in New Issue
Block a user