]> git.ipfire.org Git - thirdparty/qemu.git/commit
tests/qtest/migration: Add a NULL parameters test for TLS
authorFabiano Rosas <farosas@suse.de>
Mon, 15 Dec 2025 21:59:50 +0000 (18:59 -0300)
committerPeter Xu <peterx@redhat.com>
Tue, 23 Dec 2025 14:24:34 +0000 (09:24 -0500)
commitdf9c38b19af889eac893adddf09e4e2da60333ea
tree734d502eba764871c618efcd4ac56c6768454568
parentbe346eb667349ca316942970365f0f1533875170
tests/qtest/migration: Add a NULL parameters test for TLS

Make sure the TLS options handling is working correctly with a NULL
parameter. This is relevant due to the usage of StrOrNull for the
tls-creds, tls-authz and tls-hostname options.

With this, all manners of passing TLS options are somehow covered by
the tests, we should not need to do manual testing when touching TLS
options code.

Signed-off-by: Fabiano Rosas <farosas@suse.de>
Reviewed-by: Peter Xu <peterx@redhat.com>
Link: https://lore.kernel.org/r/20251215220041.12657-5-farosas@suse.de
Signed-off-by: Peter Xu <peterx@redhat.com>
tests/qtest/migration/migration-qmp.c
tests/qtest/migration/migration-qmp.h
tests/qtest/migration/tls-tests.c