virnetsockettest: Allow changing the proxy parameter

Currently the test cases all follow the proxy=auto behavior, but
we want to add coverage for other proxy modes as well.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Andrea Bolognani 2022-02-11 18:10:32 +01:00
parent 02c9948e36
commit 5068a76493

View File

@ -441,6 +441,7 @@ struct testSSHData {
const char *username;
bool noTTY;
bool noVerify;
virNetClientProxy proxy;
const char *netcat;
const char *keyfile;
const char *path;
@ -456,7 +457,7 @@ static int testSocketSSH(const void *opaque)
virNetSocket *csock = NULL; /* Client socket */
int ret = -1;
char buf[1024];
g_autofree char *command = virNetClientSSHHelperCommand(VIR_NET_CLIENT_PROXY_AUTO,
g_autofree char *command = virNetClientSSHHelperCommand(data->proxy,
data->netcat,
data->path,
"qemu:///session",