From nobody Mon May 6 11:40:59 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 205.139.110.120 as permitted sender) client-ip=205.139.110.120; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.120 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=1579179096; cv=none; d=zohomail.com; s=zohoarc; b=PpFT2eVPDbWonSlrjiO4FAGY5WI81fLo+Xn6XpT3/WbVZaeJPTippPTWsvRwdmudTFExyywA16tkZJ9778NdvDzLM0Jrjds4tcv0azMiK1LKJ7jlPwu3ZDdAKngLxr4zPkIemAbf6z94QKxxb2uMFfIq1H6NbmhN4f77hiTn62o= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1579179096; h=Content-Type:Content-Transfer-Encoding:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=Hu42ec8uZIUaoUYWir+E546bFgDgVS1oZgEOesFaReE=; b=LeOQwPNn2P2z+TMDG19gUp2lHHjxRdtbBLw8b5PADqZQi9h9dsTMiHmy05MWTG2yi8MFd38Yc99/r8FO0Rw9oFOnRgu+UjHwj3vQX6MWg5RXkjxFi8PAYHxMtcLbIM6qShBDtN+H4/ml5P9F2c/Gv5HpmmjxW35VsHoFkHNNAjQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) by mx.zohomail.com with SMTPS id 157917909607576.97744308387382; Thu, 16 Jan 2020 04:51:36 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-110-8oaTVbBkMIaKmmlauVG3AA-1; Thu, 16 Jan 2020 07:51:32 -0500 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 9512A107ACC7; Thu, 16 Jan 2020 12:51:26 +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 E2F1A50A8F; Thu, 16 Jan 2020 12:51:25 +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 9741C1803C33; Thu, 16 Jan 2020 12:51:24 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 00GCpNC3013711 for ; Thu, 16 Jan 2020 07:51:23 -0500 Received: by smtp.corp.redhat.com (Postfix) id C649186CB7; Thu, 16 Jan 2020 12:51:23 +0000 (UTC) Received: from angien.redhat.com (unknown [10.43.2.48]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4E60D84668 for ; Thu, 16 Jan 2020 12:51:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1579179094; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=Hu42ec8uZIUaoUYWir+E546bFgDgVS1oZgEOesFaReE=; b=EN5DPF3nnltwm1lV+FY3bxkohZTLUONaul9/4Bz8ORw+v6BU39oTKDxNbuY5FW+tCxtFEq xa0ddBcrgjg7MMp/ELYWQKYdOcDKR3IBoF8qfsKxbB8CYxIyKOOecxsFz/wRkgsfx4M1CC 17Hhnf2m7L4EKhqdkPVCjdHovnceFRM= From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH] tests: virstorage: Add tests for NBD URI style syntax over UNIX Date: Thu, 16 Jan 2020 13:51:20 +0100 Message-Id: <4a3882e52d735f778943bbd841b8f1ad19029225.1579179080.git.pkrempa@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 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.79 on 10.5.11.11 X-MC-Unique: 8oaTVbBkMIaKmmlauVG3AA-1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" Add few test cases for nbd+unix style URIs with few corner cases.t Signed-off-by: Peter Krempa Reviewed-by: Eric Blake Reviewed-by: J=C3=A1n Tomko --- tests/virstoragetest.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/tests/virstoragetest.c b/tests/virstoragetest.c index 370e19252b..4341c04b1e 100644 --- a/tests/virstoragetest.c +++ b/tests/virstoragetest.c @@ -1274,6 +1274,26 @@ mymain(void) "\n" " \n" "\n"); + TEST_BACKING_PARSE("nbd+unix://?socket=3D/tmp/sock", + "\n" + " \= n" + "\n"); + TEST_BACKING_PARSE("nbd+unix:///?socket=3D/tmp/sock", + "\n" + " \= n" + "\n"); + TEST_BACKING_PARSE("nbd+unix:////?socket=3D/tmp/sock", + "\n" + " \= n" + "\n"); + TEST_BACKING_PARSE("nbd+unix:///exp?socket=3D/tmp/sock", + "\n" + " \= n" + "\n"); + TEST_BACKING_PARSE("nbd+unix:////exp?socket=3D/tmp/sock", + "\n" + " \= n" + "\n"); TEST_BACKING_PARSE_FULL("iscsi://testuser:testpass@example.org:1234/ex= portname", "\n" " \= n" --=20 2.24.1