mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 17:34:18 +03:00
qemumigparamstest: Add test data for TLS parameters
Signed-off-by: Jiri Denemark <jdenemar@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
b60a1185ce
commit
f3a89d7c01
11
tests/qemumigparamsdata/tls-enabled.json
Normal file
11
tests/qemumigparamsdata/tls-enabled.json
Normal file
@ -0,0 +1,11 @@
|
||||
{
|
||||
"compress-level": 1,
|
||||
"compress-threads": 8,
|
||||
"decompress-threads": 2,
|
||||
"cpu-throttle-initial": 20,
|
||||
"cpu-throttle-increment": 10,
|
||||
"tls-creds": "objlibvirt_migrate_tls0",
|
||||
"tls-hostname": "",
|
||||
"max-bandwidth": 33554432,
|
||||
"downtime-limit": 300
|
||||
}
|
14
tests/qemumigparamsdata/tls-enabled.reply
Normal file
14
tests/qemumigparamsdata/tls-enabled.reply
Normal file
@ -0,0 +1,14 @@
|
||||
{
|
||||
"id": "libvirt-1",
|
||||
"return": {
|
||||
"decompress-threads": 2,
|
||||
"cpu-throttle-increment": 10,
|
||||
"compress-threads": 8,
|
||||
"tls-hostname": "",
|
||||
"compress-level": 1,
|
||||
"cpu-throttle-initial": 20,
|
||||
"tls-creds": "objlibvirt_migrate_tls0",
|
||||
"max-bandwidth": 33554432,
|
||||
"downtime-limit": 300
|
||||
}
|
||||
}
|
13
tests/qemumigparamsdata/tls-enabled.xml
Normal file
13
tests/qemumigparamsdata/tls-enabled.xml
Normal file
@ -0,0 +1,13 @@
|
||||
<test>
|
||||
<migParams>
|
||||
<param name='compress-level' value='1'/>
|
||||
<param name='compress-threads' value='8'/>
|
||||
<param name='decompress-threads' value='2'/>
|
||||
<param name='cpu-throttle-initial' value='20'/>
|
||||
<param name='cpu-throttle-increment' value='10'/>
|
||||
<param name='tls-creds' value='objlibvirt_migrate_tls0'/>
|
||||
<param name='tls-hostname' value=''/>
|
||||
<param name='max-bandwidth' value='33554432'/>
|
||||
<param name='downtime-limit' value='300'/>
|
||||
</migParams>
|
||||
</test>
|
11
tests/qemumigparamsdata/tls-hostname.json
Normal file
11
tests/qemumigparamsdata/tls-hostname.json
Normal file
@ -0,0 +1,11 @@
|
||||
{
|
||||
"compress-level": 1,
|
||||
"compress-threads": 8,
|
||||
"decompress-threads": 2,
|
||||
"cpu-throttle-initial": 20,
|
||||
"cpu-throttle-increment": 10,
|
||||
"tls-creds": "objlibvirt_migrate_tls0",
|
||||
"tls-hostname": "f27-1.virt",
|
||||
"max-bandwidth": 33554432,
|
||||
"downtime-limit": 300
|
||||
}
|
14
tests/qemumigparamsdata/tls-hostname.reply
Normal file
14
tests/qemumigparamsdata/tls-hostname.reply
Normal file
@ -0,0 +1,14 @@
|
||||
{
|
||||
"id": "libvirt-1",
|
||||
"return": {
|
||||
"decompress-threads": 2,
|
||||
"cpu-throttle-increment": 10,
|
||||
"compress-threads": 8,
|
||||
"tls-hostname": "f27-1.virt",
|
||||
"compress-level": 1,
|
||||
"cpu-throttle-initial": 20,
|
||||
"tls-creds": "objlibvirt_migrate_tls0",
|
||||
"max-bandwidth": 33554432,
|
||||
"downtime-limit": 300
|
||||
}
|
||||
}
|
13
tests/qemumigparamsdata/tls-hostname.xml
Normal file
13
tests/qemumigparamsdata/tls-hostname.xml
Normal file
@ -0,0 +1,13 @@
|
||||
<test>
|
||||
<migParams>
|
||||
<param name='compress-level' value='1'/>
|
||||
<param name='compress-threads' value='8'/>
|
||||
<param name='decompress-threads' value='2'/>
|
||||
<param name='cpu-throttle-initial' value='20'/>
|
||||
<param name='cpu-throttle-increment' value='10'/>
|
||||
<param name='tls-creds' value='objlibvirt_migrate_tls0'/>
|
||||
<param name='tls-hostname' value='f27-1.virt'/>
|
||||
<param name='max-bandwidth' value='33554432'/>
|
||||
<param name='downtime-limit' value='300'/>
|
||||
</migParams>
|
||||
</test>
|
11
tests/qemumigparamsdata/tls.json
Normal file
11
tests/qemumigparamsdata/tls.json
Normal file
@ -0,0 +1,11 @@
|
||||
{
|
||||
"compress-level": 1,
|
||||
"compress-threads": 8,
|
||||
"decompress-threads": 2,
|
||||
"cpu-throttle-initial": 20,
|
||||
"cpu-throttle-increment": 10,
|
||||
"tls-creds": "",
|
||||
"tls-hostname": "",
|
||||
"max-bandwidth": 33554432,
|
||||
"downtime-limit": 300
|
||||
}
|
14
tests/qemumigparamsdata/tls.reply
Normal file
14
tests/qemumigparamsdata/tls.reply
Normal file
@ -0,0 +1,14 @@
|
||||
{
|
||||
"id": "libvirt-1",
|
||||
"return": {
|
||||
"decompress-threads": 2,
|
||||
"cpu-throttle-increment": 10,
|
||||
"compress-threads": 8,
|
||||
"tls-hostname": "",
|
||||
"compress-level": 1,
|
||||
"cpu-throttle-initial": 20,
|
||||
"tls-creds": "",
|
||||
"max-bandwidth": 33554432,
|
||||
"downtime-limit": 300
|
||||
}
|
||||
}
|
13
tests/qemumigparamsdata/tls.xml
Normal file
13
tests/qemumigparamsdata/tls.xml
Normal file
@ -0,0 +1,13 @@
|
||||
<test>
|
||||
<migParams>
|
||||
<param name='compress-level' value='1'/>
|
||||
<param name='compress-threads' value='8'/>
|
||||
<param name='decompress-threads' value='2'/>
|
||||
<param name='cpu-throttle-initial' value='20'/>
|
||||
<param name='cpu-throttle-increment' value='10'/>
|
||||
<param name='tls-creds' value=''/>
|
||||
<param name='tls-hostname' value=''/>
|
||||
<param name='max-bandwidth' value='33554432'/>
|
||||
<param name='downtime-limit' value='300'/>
|
||||
</migParams>
|
||||
</test>
|
@ -230,6 +230,9 @@ mymain(void)
|
||||
DO_TEST("unsupported");
|
||||
DO_TEST("empty");
|
||||
DO_TEST("basic");
|
||||
DO_TEST("tls");
|
||||
DO_TEST("tls-enabled");
|
||||
DO_TEST("tls-hostname");
|
||||
|
||||
qemuTestDriverFree(&driver);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user