all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: Fiona Ebner <f.ebner@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH qemu-server 07/12] test: restore config: test behavior for disks with absolute paths
Date: Tue,  4 Mar 2025 11:44:08 +0100	[thread overview]
Message-ID: <20250304104413.38638-8-f.ebner@proxmox.com> (raw)
In-Reply-To: <20250304104413.38638-1-f.ebner@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


  parent reply	other threads:[~2025-03-04 10:44 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-04 10:44 [pve-devel] [PATCH-SERIES guest-common/manager/qemu-server/container 00/12] backup/restore: improve missing drive and owned CD-ROM handling Fiona Ebner
2025-03-04 10:44 ` [pve-devel] [PATCH guest-common 01/12] abstract config: make get_backup_volumes() method more flexible Fiona Ebner
2025-03-04 10:44 ` [pve-devel] [PATCH manager 02/12] api: backup: adapt to new get_backup_volumes() signature Fiona Ebner
2025-03-04 10:44 ` [pve-devel] [PATCH qemu-server 03/12] cloudinit: avoid undefined value warning when no searchdomain is defined Fiona Ebner
2025-03-04 10:44 ` [pve-devel] [PATCH qemu-server 04/12] drive: move vm_is_volid_owner() and try_deallocate_drive() helpers to Drive module Fiona Ebner
2025-03-04 10:44 ` [pve-devel] [PATCH qemu-server 05/12] test: restore config: use diff to make failure human-readable Fiona Ebner
2025-03-04 10:44 ` [pve-devel] [PATCH qemu-server 06/12] test: restore config: add config with missing disks Fiona Ebner
2025-03-04 10:44 ` Fiona Ebner [this message]
2025-03-04 10:44 ` [pve-devel] [PATCH qemu-server 08/12] backup restore: improve missing drive handling Fiona Ebner
2025-03-04 10:44 ` [pve-devel] [PATCH qemu-server 09/12] backup: adapt to new get_backup_volumes() signature Fiona Ebner
2025-03-04 10:44 ` [pve-devel] [PATCH qemu-server 10/12] backup: include owned CD-ROM volumes Fiona Ebner
2025-03-04 10:44 ` [pve-devel] [PATCH qemu-server 11/12] destroy vm: add reminder to also remove owned CD-ROMs starting with PVE 9 Fiona Ebner
2025-03-04 10:44 ` [pve-devel] [PATCH container 12/12] backup: adapt to new get_backup_volumes() signature Fiona Ebner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250304104413.38638-8-f.ebner@proxmox.com \
    --to=f.ebner@proxmox.com \
    --cc=pve-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal