mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-18 10:35:20 +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"
|
||||
" <host name='example.org' port='6000'/>\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\","
|
||||
"\"host\":\"example.org\","
|
||||
"\"port\":\"6000\","
|
||||
|
Loading…
x
Reference in New Issue
Block a user