tests/qtest/migration: Replace migrate_get_connect_uri inplace of migrate_get_socket_...
authorHet Gala <het.gala@nutanix.com>
Tue, 12 Mar 2024 20:26:29 +0000 (20:26 +0000)
committerPeter Xu <peterx@redhat.com>
Tue, 23 Apr 2024 22:36:01 +0000 (18:36 -0400)
commit4f2f5b694d9dec2dde87a9155b0cb674dc3e6644
treed09e5f255789c7e80b2ef12eb540be4449e44b47
parentd1155fd485d54e55fd26804c04635404ce5da43b
tests/qtest/migration: Replace migrate_get_connect_uri inplace of migrate_get_socket_address

Refactor migrate_get_socket_address to internally utilize 'socket-address'
parameter, reducing redundancy in the function definition.

migrate_get_socket_address implicitly converts SocketAddress into str.
Move migrate_get_socket_address inside migrate_get_connect_uri which
should return the uri string instead.

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-4-het.gala@nutanix.com
Signed-off-by: Peter Xu <peterx@redhat.com>
tests/qtest/migration-helpers.c