From nobody Fri May 3 01:54:45 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.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.129.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=1666023415; cv=none; d=zohomail.com; s=zohoarc; b=LOiNuFFtJRJjp7eyfbJb2ptwSVcvMYQUg7NP4XrWKNXKxYW8dcqyRzx+V0sX8S5N0hEbXGpKOBGOV8S/omV1DM4AUruO+ppQtzNPBo/3cQtPXiWz8sbzVVBJs39RGgRDoY0NGR6zsQZC5Jsn9kgx+KBhZrrxD4RbLGBaefZrbEo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1666023415; h=Content-Type:Content-Transfer-Encoding:Cc: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=R6YC7TGEQ1jdLneJuE/7b7+sm3cwxDSwEhTbHg0XXbM=; b=hP09ZEJqED6byp7Jjj7KwM9HtvbLaNxYn/B0Cq4cgac/OOewvQIF6MkOsZ06ImoltH2c1Hz6lsvgxnGzOzslGqFKoCWcR7/kYGL/DSKvriqdENm/llUwE2yOw97u13+C2OCDoCLaxvIMggKLo+gCT1bZ9xCafrFdS+npnGjxo0Q= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.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.129.124]) by mx.zohomail.com with SMTPS id 1666023415412358.62613142544126; Mon, 17 Oct 2022 09:16:55 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-439-S1vcTOudMlSB1GYayr8XrA-1; Mon, 17 Oct 2022 12:16:53 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id AC83B3C138A7; Mon, 17 Oct 2022 16:16:48 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (unknown [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9995C1003342; Mon, 17 Oct 2022 16:16:48 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 9D86E1946A47; Mon, 17 Oct 2022 16:16:47 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 56C78194658F for ; Mon, 17 Oct 2022 16:16:45 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 39871207A78C; Mon, 17 Oct 2022 16:16:45 +0000 (UTC) Received: from worklaptop.redhat.com (unknown [10.22.32.196]) by smtp.corp.redhat.com (Postfix) with ESMTP id 11939207B344; Mon, 17 Oct 2022 16:16:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1666023414; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=R6YC7TGEQ1jdLneJuE/7b7+sm3cwxDSwEhTbHg0XXbM=; b=HFuaMAC90NBNpag55jDu9gd1X8aEZzG+7K9Cpl1HjD20PN6CCSjZjtQlbscD1/znoVZ4uy RVGQdjcv4YBKFoo3OBoa1w+Pe6dXUusR0UVoNFjUAFonLEQhtha3N9+QPggXDCfxIn+Uu0 y7iYJ78CGVn3LCfOjFUgOin6ZVr4/js= X-MC-Unique: S1vcTOudMlSB1GYayr8XrA-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Cole Robinson To: libvir-list@redhat.com Subject: [PATCH 1/3] examples: testdriver: Add xmlns runstate example Date: Mon, 17 Oct 2022 12:16:39 -0400 Message-Id: <2958a614a85b8df697024acba252ada0a81fc573.1666023279.git.crobinso@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.4 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Cole Robinson Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.3 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: 1666023417413100002 Content-Type: text/plain; charset="utf-8" The testdriver has xmlns support for overriding object default state. demo it by pausing a VM Signed-off-by: Cole Robinson Reviewed-by: Peter Krempa --- examples/xml/test/testnodeinline.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/xml/test/testnodeinline.xml b/examples/xml/test/testn= odeinline.xml index 9165d9302d..90805f025a 100644 --- a/examples/xml/test/testnodeinline.xml +++ b/examples/xml/test/testnodeinline.xml @@ -86,7 +86,8 @@ - + + 3 fc5 08721f993d1d4aec96eb97803297bb36 --=20 2.37.3 From nobody Fri May 3 01:54:45 2024 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=1666023416; cv=none; d=zohomail.com; s=zohoarc; b=KJ6OGbCQuaxsZGrvGsju9518Jn4xY/DH0AO8oU4vAAvgx+oLyD2Rr8bBrKLp+b+qAZKF3eF09YX+sqf3Fmt4uya70C9A8J9DTWkXa0mySu+9T0yeZlgPsflkFceIB1Q6ZVcLz6UrSbWsp+PzwEZcCmfwVyFVyA/843p3CkSMp6g= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1666023416; h=Content-Type:Content-Transfer-Encoding:Cc: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=bhYfKlnQP/ZAaA/Pef66ImbBjGvwa5hfL1K+zyum4+E=; b=B8H97VAz6ukDfwg4/QOvjOGN+140XVhxbDijl+9DzVdhdRlMDt+rOtu07xLaIw90WMywaP42RjXwWeuc43woVTZkQYZkJVVdB9MlMzN/qX6KbcsmW/aBxMWoHY+GXyKybzzReLANYUpxKVI+iswJQ6uL8gPXbRdhdeyoEVFDGsE= 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 166602341634573.78512343591603; Mon, 17 Oct 2022 09:16:56 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-492-5pWeoVmOOE-fqdr71Qn6hg-1; Mon, 17 Oct 2022 12:16:51 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 72B441C087A5; Mon, 17 Oct 2022 16:16:48 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (unknown [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 27A7540E9929; Mon, 17 Oct 2022 16:16:48 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id E106B19465B6; Mon, 17 Oct 2022 16:16:46 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 7DCDB194658F for ; Mon, 17 Oct 2022 16:16:45 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 6F1F9207B366; Mon, 17 Oct 2022 16:16:45 +0000 (UTC) Received: from worklaptop.redhat.com (unknown [10.22.32.196]) by smtp.corp.redhat.com (Postfix) with ESMTP id 49C59207B344; Mon, 17 Oct 2022 16:16:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1666023415; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=bhYfKlnQP/ZAaA/Pef66ImbBjGvwa5hfL1K+zyum4+E=; b=aHFTc/dcHdUQ+cwNXsXYpreLVomJGfD7nV5ppvd9HTq/0vE2wT7Sl9dJ0D7cBrv0crr54W kqEN7Spx6lQpi1LA8KP9kMQzrXFE/3DuVkfMS822V1rU0iIUSQeJBjiii75NgvqAV8anCJ MP3IPO3gWr6s52VqZWbrNzEJhi6mKa8= X-MC-Unique: 5pWeoVmOOE-fqdr71Qn6hg-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Cole Robinson To: libvir-list@redhat.com Subject: [PATCH 2/3] examples: testdriver: Add a nested inline example Date: Mon, 17 Oct 2022 12:16:40 -0400 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.4 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Cole Robinson Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.1 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: 1666023417418100003 Content-Type: text/plain; charset="utf-8" Signed-off-by: Cole Robinson Reviewed-by: Peter Krempa --- examples/xml/test/testnodeinline.xml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/examples/xml/test/testnodeinline.xml b/examples/xml/test/testn= odeinline.xml index 90805f025a..4657ecadd2 100644 --- a/examples/xml/test/testnodeinline.xml +++ b/examples/xml/test/testnodeinline.xml @@ -177,6 +177,28 @@ =20 + + default-pool + 35bb2ad9-388a-cdfe-461a-b8907f6e53fe + 107374182400 + 0 + 107374182400 + + /default-pool + + 0700 + 10736 + 10736 + + + + + default-vol + 1000000 + 50000 + + + =20 6000 --=20 2.37.3 From nobody Fri May 3 01:54:45 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.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.129.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=1666023418; cv=none; d=zohomail.com; s=zohoarc; b=YIv964SuXTrh4CA5mHmrzJ1V6xZxY14zS0FbUZ5uh9oCfADy+k+U4tFmg85raiVGN5Gzf68aczXr24GlXcGhZKtufVXwM2bXgmXgsEPvjAZELQwEcfDW5zXMFfXoj6fmZn84e0ACDvkM0+q9cGkSNmqaMdRwOPHd+SwiKkDkMP8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1666023418; h=Content-Type:Content-Transfer-Encoding:Cc: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=9J2G4j2sAgK3qTIBdrv0liOrJmDXh/9ZZ//9rOmBHS4=; b=dIglfa/F63v3I7rdrzt7BxF4O5VsJSSYoggjOSIR7l3K4LLpebMUiwDd1fqN9F6ttdkwssXJ8VloPgQX7BwCXo+pbLiVsQxNatiJXDJj6+yAHkXWb0xJ5ubbR29i95xwDFccIuaxU3jGWGyr22trufYNp8iAQ+OKCltph8ZMZPI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.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.129.124]) by mx.zohomail.com with SMTPS id 1666023418208344.8854428446871; Mon, 17 Oct 2022 09:16:58 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-113-Wjg_47x_N9KVojnaJWclJw-1; Mon, 17 Oct 2022 12:16:52 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 4298638164E1; Mon, 17 Oct 2022 16:16:49 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (unknown [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2012040E9929; Mon, 17 Oct 2022 16:16:49 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id EE6071946A54; Mon, 17 Oct 2022 16:16:47 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id BFF7A194658F for ; Mon, 17 Oct 2022 16:16:45 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id A550D207B344; Mon, 17 Oct 2022 16:16:45 +0000 (UTC) Received: from worklaptop.redhat.com (unknown [10.22.32.196]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7F6C3207B372; Mon, 17 Oct 2022 16:16:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1666023417; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=9J2G4j2sAgK3qTIBdrv0liOrJmDXh/9ZZ//9rOmBHS4=; b=XAtmDHt7kBDI+TYlV7VnXJS6+ZKmdIUKVLqg16Mf90r5M9VPAyRKi/r8QrJOlZBO/aJFMZ /QzYzokrFuLP8Bk6+gryPFawaBIFPdvP7Qa5T5rklW8cElTCQU2kEnMcdIAetM5uSNoKOm Kui709h+VCV5iFFn6mX/blK8pyrfEuo= X-MC-Unique: Wjg_47x_N9KVojnaJWclJw-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Cole Robinson To: libvir-list@redhat.com Subject: [PATCH 3/3] test: Fix parsing nested XML Date: Mon, 17 Oct 2022 12:16:41 -0400 Message-Id: <4ff73b994b2e3128c5ad63ae84cbc40a04cde2c4.1666023279.git.crobinso@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.4 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Cole Robinson Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.1 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: 1666023419440100007 Content-Type: text/plain; charset="utf-8" Reproducer: ./build/tools/virsh \ --connect test:///`pwd`/examples/xml/test/testnodeinline.xml \ vol-list default-pool Fixes: b3e33a0ef7e62169175280c647aa9ac361bd554d Signed-off-by: Cole Robinson Reviewed-by: Peter Krempa --- src/test/test_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/test_driver.c b/src/test/test_driver.c index 8675f8ad07..67c70de11d 100644 --- a/src/test/test_driver.c +++ b/src/test/test_driver.c @@ -1152,7 +1152,7 @@ testOpenVolumesForPool(const char *file, g_autofree xmlNodePtr *nodes =3D NULL; g_autoptr(virStorageVolDef) volDef =3D NULL; =20 - num =3D virXPathNodeSet("/pool/volume", ctxt, &nodes); + num =3D virXPathNodeSet("./volume", ctxt, &nodes); if (num < 0) return -1; =20 --=20 2.37.3