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(a)redhat.com>
---
tests/virnetsockettest.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/virnetsockettest.c b/tests/virnetsockettest.c
index 557d781605..36f6993ba5 100644
--- a/tests/virnetsockettest.c
+++ b/tests/virnetsockettest.c
@@ -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",
--
2.34.1