From nobody Mon Feb 9 16:45:20 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1644601723; cv=none; d=zohomail.com; s=zohoarc; b=nXEWh9PRYHJTK2KubsQS5IYmv+YShpC30J9fGvGSYPXw9/CDwWDpOOWkvZA/MxadruxGLm/n/3Eufe1U2SxbmJ/tSb3MZSjwi6ig8UAHrGu17T1qonPAYbWytE48qG8h9K4kVJ6rDUF6soPKFDlkRxvTSjvlJfpRpKmlM3Tw088= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1644601723; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=oAdnsDK4cSk5I5g24nIXu6/yzdip02IlTXGVVBiFV3U=; b=DyEZn7vhCJmDVbCn1cxCk+/QFfzgyw1+J2iE3GMtz7IhVZ+LLOPmDEHKq+wOm8mePaQA6aLbqPtKnaGB8Af5pleEWlj7JrURvc9IEnaklCAE+frXBVf2Uwo1MPDM63caxR35yRFP/GZPSx+0wd5J/itUum0JPr62IHI0SbMGhfU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 1644601723019299.1726881303779; Fri, 11 Feb 2022 09:48:43 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-360-o94_3eJuN22AM3alRjcSGA-1; Fri, 11 Feb 2022 12:48:40 -0500 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id B895B19253E9; Fri, 11 Feb 2022 17:48:35 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 96F452DE99; Fri, 11 Feb 2022 17:48:35 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 676C61806D1C; Fri, 11 Feb 2022 17:48:35 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 21BHeK6k006760 for ; Fri, 11 Feb 2022 12:40:20 -0500 Received: by smtp.corp.redhat.com (Postfix) id 6C3192DE99; Fri, 11 Feb 2022 17:40:20 +0000 (UTC) Received: from harajuku.usersys.redhat.com.homenet.telecomitalia.it (unknown [10.40.194.192]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C63FF34B21 for ; Fri, 11 Feb 2022 17:40:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1644601721; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=oAdnsDK4cSk5I5g24nIXu6/yzdip02IlTXGVVBiFV3U=; b=B718EiS/E5F1QcnJ/EiFPN6sSFRq+itZKr5FZqKnWd0rHEQvJKIOTPnkrV/oMcRvJBP9lF 7gmT5Kd1QKfDuz92l1Mb0erQA17dwsGFeCN+4ztksC/cpGfs/Cwo0/i9Yacj8Oy739x1sC XFHnugHihFyH6x1FBk7ouKEl8sL/N38= X-MC-Unique: o94_3eJuN22AM3alRjcSGA-1 From: Andrea Bolognani To: libvir-list@redhat.com Subject: [libvirt PATCH 09/11] virnetsockettest: Allow changing the proxy parameter Date: Fri, 11 Feb 2022 18:39:17 +0100 Message-Id: <20220211173919.112353-10-abologna@redhat.com> In-Reply-To: <20220211173919.112353-1-abologna@redhat.com> References: <20220211173919.112353-1-abologna@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-loop: libvir-list@redhat.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1644601725319100001 Content-Type: text/plain; charset="utf-8" Currently the test cases all follow the proxy=3Dauto behavior, but we want to add coverage for other proxy modes as well. Signed-off-by: Andrea Bolognani --- 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 =3D NULL; /* Client socket */ int ret =3D -1; char buf[1024]; - g_autofree char *command =3D virNetClientSSHHelperCommand(VIR_NET_CLIE= NT_PROXY_AUTO, + g_autofree char *command =3D virNetClientSSHHelperCommand(data->proxy, data->netcat, data->path, "qemu:///sessi= on", --=20 2.34.1