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:
Jiri Denemark 2018-03-19 23:42:01 +01:00
parent b60a1185ce
commit f3a89d7c01
10 changed files with 117 additions and 0 deletions

View 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
}

View 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
}
}

View 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>

View 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
}

View 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
}
}

View 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>

View 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
}

View 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
}
}

View 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>

View File

@ -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);