tests/qtest/migration: Add channels parameter in migrate_qmp_fail
authorHet Gala <het.gala@nutanix.com>
Tue, 12 Mar 2024 20:26:30 +0000 (20:26 +0000)
committerPeter Xu <peterx@redhat.com>
Tue, 23 Apr 2024 22:36:01 +0000 (18:36 -0400)
commit387dc407db6137cec479f6c6efb3851464ea9026
tree3ce3c222d1fdfdc54f67d51aba1055e0729ff110
parent4f2f5b694d9dec2dde87a9155b0cb674dc3e6644
tests/qtest/migration: Add channels parameter in migrate_qmp_fail

Alter migrate_qmp_fail() to allow both uri and channels
independently. For channels, convert string to a Dict.
No dealing with migrate_get_socket_address() here because
we will fail before starting the migration anyway.

Signed-off-by: Het Gala <het.gala@nutanix.com>
Suggested-by: Fabiano Rosas <farosas@suse.de>
Reviewed-by: Fabiano Rosas <farosas@suse.de>
Link: https://lore.kernel.org/r/20240312202634.63349-5-het.gala@nutanix.com
Signed-off-by: Peter Xu <peterx@redhat.com>
tests/qtest/migration-helpers.c
tests/qtest/migration-helpers.h
tests/qtest/migration-test.c