From nobody Fri Oct 18 06:24:37 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=fail(p=none dis=none) header.from=riseup.net ARC-Seal: i=1; a=rsa-sha256; t=1693753615; cv=none; d=zohomail.com; s=zohoarc; b=eoIYJmqYuVkY9MqycN4lOCkjOW/FsclISF/w/qzqVP08gW9CWRqpYcRjttVg5zYKt+/oyuq4eVuoPwnVCBBjx9A4NrBbwWwT5h5iqjEIo8xbZGFRv1fJbkUsW2iX3JGopVuyVvsZIxTc+PC8/S7b6JkC4uihq/rf4+267Hccb8U= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1693753615; 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=/s3U13X9e14oNnvAloUteabu1cvmoHMH//3ZbnWWWnA=; b=MyBNONNPhRP9IugpWCvNek1oueY8GOnp7lpOJ6njNao1+aF6AIi34+2SUNWu+N0znbAPFvCDcisxNjFoBuqbdn8kk3hqy9UaKzD+4fz3VwgqY7DYRiG4bwVaVCZLxwy0qQUi9hFhv/7IXYJv/rrg4sNTnfg7J90nG+14GqeihA4= 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=fail 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 169375361509385.23941325535498; Sun, 3 Sep 2023 08:06:55 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-417-kSCGQJagM3-Lg4MeaWpucg-1; Sun, 03 Sep 2023 11:06:50 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id D93AF1817917; Sun, 3 Sep 2023 15:06:47 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id C5CD31460FFA; Sun, 3 Sep 2023 15:06:47 +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 536A41946A6A; Sun, 3 Sep 2023 15:06:47 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id E88B61946586 for ; Sun, 3 Sep 2023 15:06:45 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id CFEF1525720; Sun, 3 Sep 2023 15:06:45 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast08.extmail.prod.ext.rdu2.redhat.com [10.11.55.24]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C861D493114 for ; Sun, 3 Sep 2023 15:06:45 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-inbound-delivery-1.mimecast.com [207.211.31.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id A8C7A3806714 for ; Sun, 3 Sep 2023 15:06:45 +0000 (UTC) Received: from mx0.riseup.net (mx0.riseup.net [198.252.153.6]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-511-pfcapRoFP0Gg_QnI2Q7GKQ-1; Sun, 03 Sep 2023 11:06:43 -0400 Received: from fews02-sea.riseup.net (fews02-sea-pn.riseup.net [10.0.1.112]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx0.riseup.net (Postfix) with ESMTPS id 4Rdw8g0Dv4z9tGn for ; Sun, 3 Sep 2023 15:06:43 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews02-sea.riseup.net (Postfix) with ESMTPSA id 4Rdw8d6D3WzFq1y; Sun, 3 Sep 2023 15:06:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1693753614; 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=/s3U13X9e14oNnvAloUteabu1cvmoHMH//3ZbnWWWnA=; b=MWdQv/nVW6HngHNYIkLckIZR7/hATmF05iugfQbbf8hMhIdiebykNT1yWBy2BHrccYOLGH ShUgzFqIF5UDmWUjKA8Elj2RgRThMGO1ux8zpfxvZkZkOfZW0BkSQsEzTixAjjGzA1Smus 9mywKkIG7+u4fXwD1pfkMU8a8IYbsKk= X-MC-Unique: kSCGQJagM3-Lg4MeaWpucg-1 X-Original-To: libvir-list@listman.corp.redhat.com X-MC-Unique: pfcapRoFP0Gg_QnI2Q7GKQ-1 X-Riseup-User-ID: 2DEC5D66697F5B6F414F2B19843F7220F51F4D71486C6B3463D132F275F73FAF From: K Shiva Kiran To: libvir-list@redhat.com Subject: [PATCH 6/8] Test driver implementation for Network metadata change callbacks Date: Sun, 3 Sep 2023 20:28:38 +0530 Message-ID: <20230903150541.200896-7-shiva_kr@riseup.net> In-Reply-To: <20230903150541.200896-1-shiva_kr@riseup.net> References: <20230903150541.200896-1-shiva_kr@riseup.net> MIME-Version: 1.0 X-Mimecast-Impersonation-Protect: Policy=CLT - Impersonation Protection Definition; Similar Internal Domain=false; Similar Monitored External Domain=false; Custom External Domain=false; Mimecast External Domain=false; Newly Observed Domain=false; Internal User Name=false; Custom Display Name List=false; Reply-to Address Mismatch=false; Targeted Threat Dictionary=false; Mimecast Threat Dictionary=false; Custom Threat Dictionary=false X-Scanned-By: MIMEDefang 3.1 on 10.11.54.10 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: K Shiva Kiran Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.7 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: riseup.net Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1693753615655100006 Content-Type: text/plain; charset="utf-8"; x-default="true" Signed-off-by: K Shiva Kiran --- src/test/test_driver.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/test/test_driver.c b/src/test/test_driver.c index 0174b28bac..0144df164e 100644 --- a/src/test/test_driver.c +++ b/src/test/test_driver.c @@ -9989,6 +9989,7 @@ testNetworkSetMetadata(virNetworkPtr net, const char *uri, unsigned int flags) { + testDriver *privconn =3D net->conn->privateData; virNetworkObj *privnet; int ret; =20 @@ -10002,6 +10003,12 @@ testNetworkSetMetadata(virNetworkPtr net, key, uri, NULL, NULL, NULL, flags); =20 + if (ret =3D=3D 0) { + virObjectEvent *ev =3D NULL; + ev =3D virNetworkEventMetadataChangeNewFromObj(privnet, type, uri); + virObjectEventStateQueue(privconn->eventState, ev); + } + virNetworkObjEndAPI(&privnet); return ret; } --=20 2.42.0