From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <pve-devel-bounces@lists.proxmox.com>
Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68])
	by lore.proxmox.com (Postfix) with ESMTPS id C99231FF168
	for <inbox@lore.proxmox.com>; Tue,  4 Mar 2025 11:44:54 +0100 (CET)
Received: from firstgate.proxmox.com (localhost [127.0.0.1])
	by firstgate.proxmox.com (Proxmox) with ESMTP id CC71A1B32E;
	Tue,  4 Mar 2025 11:44:24 +0100 (CET)
From: Fiona Ebner <f.ebner@proxmox.com>
To: pve-devel@lists.proxmox.com
Date: Tue,  4 Mar 2025 11:44:08 +0100
Message-Id: <20250304104413.38638-8-f.ebner@proxmox.com>
X-Mailer: git-send-email 2.39.5
In-Reply-To: <20250304104413.38638-1-f.ebner@proxmox.com>
References: <20250304104413.38638-1-f.ebner@proxmox.com>
MIME-Version: 1.0
X-SPAM-LEVEL: Spam detection results:  0
 AWL -0.043 Adjusted score from AWL reputation of From: address
 BAYES_00                 -1.9 Bayes spam probability is 0 to 1%
 DMARC_MISSING             0.1 Missing DMARC policy
 KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment
 SPF_HELO_NONE           0.001 SPF: HELO does not publish an SPF Record
 SPF_PASS               -0.001 SPF: sender matches SPF record
Subject: [pve-devel] [PATCH qemu-server 07/12] test: restore config: test
 behavior for disks with absolute paths
X-BeenThere: pve-devel@lists.proxmox.com
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Proxmox VE development discussion <pve-devel.lists.proxmox.com>
List-Unsubscribe: <https://lists.proxmox.com/cgi-bin/mailman/options/pve-devel>, 
 <mailto:pve-devel-request@lists.proxmox.com?subject=unsubscribe>
List-Archive: <http://lists.proxmox.com/pipermail/pve-devel/>
List-Post: <mailto:pve-devel@lists.proxmox.com>
List-Help: <mailto:pve-devel-request@lists.proxmox.com?subject=help>
List-Subscribe: <https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel>, 
 <mailto:pve-devel-request@lists.proxmox.com?subject=subscribe>
Reply-To: Proxmox VE development discussion <pve-devel@lists.proxmox.com>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: pve-devel-bounces@lists.proxmox.com
Sender: "pve-devel" <pve-devel-bounces@lists.proxmox.com>

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
---
 test/restore-config-expected/110.conf | 16 ++++++++++++++++
 test/restore-config-input/110.conf    | 18 ++++++++++++++++++
 test/run_qemu_restore_config_tests.pl |  2 +-
 3 files changed, 35 insertions(+), 1 deletion(-)
 create mode 100644 test/restore-config-expected/110.conf
 create mode 100644 test/restore-config-input/110.conf

diff --git a/test/restore-config-expected/110.conf b/test/restore-config-expected/110.conf
new file mode 100644
index 00000000..fcbeaa5c
--- /dev/null
+++ b/test/restore-config-expected/110.conf
@@ -0,0 +1,16 @@
+# drives with absolute paths
+boot: order=scsi0;ide2;net0
+cores: 1
+cpu: x86-64-v2-AES
+ide2: none,media=cdrom
+memory: 2048
+meta: creation-qemu=9.0.2,ctime=1726234504
+net0: virtio=BC:24:11:B1:BF:4B,bridge=vmbr0,firewall=1
+numa: 0
+ostype: l26
+scsi0: target:110/vm-110-disk-0.raw,aio=io_uring,iothread=1,size=1G
+scsi2: target:110/vm-110-disk-1.raw,size=1G
+#scsi3: /dev/sdj,backup=0,size=1G
+scsihw: virtio-scsi-single
+smbios1: uuid=ebc66780-e174-4abc-8860-afaaeab758d4
+sockets: 1
diff --git a/test/restore-config-input/110.conf b/test/restore-config-input/110.conf
new file mode 100644
index 00000000..8c122fe6
--- /dev/null
+++ b/test/restore-config-input/110.conf
@@ -0,0 +1,18 @@
+# drives with absolute paths
+boot: order=scsi0;ide2;net0
+cores: 1
+cpu: x86-64-v2-AES
+ide2: none,media=cdrom
+memory: 2048
+meta: creation-qemu=9.0.2,ctime=1726234504
+net0: virtio=BC:24:11:B1:BF:4B,bridge=vmbr0,firewall=1
+numa: 0
+ostype: l26
+scsi0: zfs:vm-110-disk-0,aio=io_uring,iothread=1,size=1G
+scsi2: /dev/sdm,size=1G
+scsi3: /dev/sdj,backup=0,size=1G
+scsihw: virtio-scsi-single
+smbios1: uuid=ebc66780-e174-4abc-8860-afaaeab758d4
+sockets: 1
+#qmdump#map:scsi0:drive-scsi0:zfs:raw:
+#qmdump#map:scsi2:drive-scsi2::raw:
diff --git a/test/run_qemu_restore_config_tests.pl b/test/run_qemu_restore_config_tests.pl
index 245258c8..f2d220fc 100755
--- a/test/run_qemu_restore_config_tests.pl
+++ b/test/run_qemu_restore_config_tests.pl
@@ -25,7 +25,7 @@ $pve_cluster_module->mock(
 );
 
 # NOTE update when you add/remove tests
-plan tests => 5;
+plan tests => 6;
 
 my $cfs_mock = Test::MockModule->new("PVE::Cluster");
 $cfs_mock->mock(
-- 
2.39.5



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel