mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-05 13:17:51 +03:00
tests: qemublock: Test NBD with TLS in the JSON generator
Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
8ac9db0e54
commit
3875459235
@ -486,6 +486,7 @@ mymain(void)
|
|||||||
TEST_DISK_TO_JSON("file-backing_basic-cache-unsafe");
|
TEST_DISK_TO_JSON("file-backing_basic-cache-unsafe");
|
||||||
TEST_DISK_TO_JSON("network-qcow2-backing-chain-cache-unsafe");
|
TEST_DISK_TO_JSON("network-qcow2-backing-chain-cache-unsafe");
|
||||||
TEST_DISK_TO_JSON("dir-fat-cache");
|
TEST_DISK_TO_JSON("dir-fat-cache");
|
||||||
|
TEST_DISK_TO_JSON("network-nbd-tls");
|
||||||
|
|
||||||
TEST_DISK_TO_JSON("block-raw-noopts");
|
TEST_DISK_TO_JSON("block-raw-noopts");
|
||||||
TEST_DISK_TO_JSON("block-raw-reservations");
|
TEST_DISK_TO_JSON("block-raw-reservations");
|
||||||
|
19
tests/qemublocktestdata/xml2json/network-nbd-tls.json
Normal file
19
tests/qemublocktestdata/xml2json/network-nbd-tls.json
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
{
|
||||||
|
"node-name": "node-b-f",
|
||||||
|
"read-only": false,
|
||||||
|
"driver": "qcow2",
|
||||||
|
"file": "node-a-s",
|
||||||
|
"backing": null
|
||||||
|
}
|
||||||
|
{
|
||||||
|
"driver": "nbd",
|
||||||
|
"server": {
|
||||||
|
"type": "inet",
|
||||||
|
"host": "host1.example.com",
|
||||||
|
"port": "10809"
|
||||||
|
},
|
||||||
|
"tls-creds": "node-a-s-tls0",
|
||||||
|
"node-name": "node-a-s",
|
||||||
|
"read-only": false,
|
||||||
|
"discard": "unmap"
|
||||||
|
}
|
18
tests/qemublocktestdata/xml2json/network-nbd-tls.xml
Normal file
18
tests/qemublocktestdata/xml2json/network-nbd-tls.xml
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
<disk type='network' device='disk'>
|
||||||
|
<driver name='qemu' type='qcow2'/>
|
||||||
|
<source protocol='nbd' tls='yes'>
|
||||||
|
<host name='host1.example.com'/>
|
||||||
|
<privateData>
|
||||||
|
<nodenames>
|
||||||
|
<nodename type='storage' name='node-a-s'/>
|
||||||
|
<nodename type='format' name='node-b-f'/>
|
||||||
|
</nodenames>
|
||||||
|
<objects>
|
||||||
|
<TLSx509 alias='node-a-s-tls0'/>
|
||||||
|
</objects>
|
||||||
|
</privateData>
|
||||||
|
</source>
|
||||||
|
<backingStore/>
|
||||||
|
<target dev='vda' bus='virtio'/>
|
||||||
|
<alias name='virtio-disk0'/>
|
||||||
|
</disk>
|
Loading…
Reference in New Issue
Block a user