From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [IPv6:2a0f:8001:1:32::40]) by lore.proxmox.com (Postfix) with ESMTPS id A54EB1FF141 for ; Tue, 30 Jun 2026 13:05:20 +0200 (CEST) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 5374821430; Tue, 30 Jun 2026 13:05:20 +0200 (CEST) From: Maximiliano Sandoval To: pve-devel@lists.proxmox.com Subject: [PATCH qemu-server v3 1/3] test: mock query-version qmp command Date: Tue, 30 Jun 2026 13:04:37 +0200 Message-ID: <20260630110446.314299-2-m.sandoval@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260630110446.314299-1-m.sandoval@proxmox.com> References: <20260630110446.314299-1-m.sandoval@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1782817474298 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.000 Adjusted score from AWL reputation of From: address DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment (newer systems) SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: G6IHG3432MGCYXYJU77GJ347NCWDH6PO X-Message-ID-Hash: G6IHG3432MGCYXYJU77GJ347NCWDH6PO X-MailFrom: m.sandoval@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: In the next commit we add a call to query-version to log the package version when starting a VM. Signed-off-by: Maximiliano Sandoval --- src/test/MigrationTest/QmMock.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/test/MigrationTest/QmMock.pm b/src/test/MigrationTest/QmMock.pm index 311dbb39..c6fc1f50 100644 --- a/src/test/MigrationTest/QmMock.pm +++ b/src/test/MigrationTest/QmMock.pm @@ -54,6 +54,11 @@ my sub mocked_mon_cmd { return []; } elsif ($command eq 'qom-set') { return; + } elsif ($command eq 'query-version') { + return { + qemu => { major => '11', minor => '0', micro => '0' }, + package => 'pve-qemu-kvm_11.0.0-4', + }; } die "mon_cmd (mocked) - implement me: $command"; } -- 2.47.3