From: "Michael Köppl" <m.koeppl@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [PATCH e2e-tests 4/6] hw-validation: use random_vmid function for getting VMIDs
Date: Thu, 17 Sep 2026 18:23:22 +0200 [thread overview]
Message-ID: <20260917162324.1926056-5-m.koeppl@proxmox.com> (raw)
In-Reply-To: <20260917162324.1926056-1-m.koeppl@proxmox.com>
Signed-off-by: Michael Köppl <m.koeppl@proxmox.com>
---
hw-validation-tests/tests/kvm_linux.pl | 3 ++-
hw-validation-tests/tests/lxc_lifecycle.pl | 3 ++-
hw-validation-tests/tests/storage_local.pl | 3 ++-
3 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/hw-validation-tests/tests/kvm_linux.pl b/hw-validation-tests/tests/kvm_linux.pl
index be43da9..a7e93f2 100755
--- a/hw-validation-tests/tests/kvm_linux.pl
+++ b/hw-validation-tests/tests/kvm_linux.pl
@@ -5,11 +5,12 @@ use Test::More;
use lib '..';
use Proxmox::Test::PVEInstance;
+use Proxmox::Test::Util qw(random_vmid);
my $pve = Proxmox::Test::PVEInstance->new_local();
my $node = $pve->get_nodename();
-my $vmid = $pve->client()->get("/cluster/nextid");
+my $vmid = random_vmid($pve->client());
# 6.1 Create Linux VM
my $upid = eval {
diff --git a/hw-validation-tests/tests/lxc_lifecycle.pl b/hw-validation-tests/tests/lxc_lifecycle.pl
index 640721c..27f2f7d 100755
--- a/hw-validation-tests/tests/lxc_lifecycle.pl
+++ b/hw-validation-tests/tests/lxc_lifecycle.pl
@@ -5,11 +5,12 @@ use Test::More;
use lib '..';
use Proxmox::Test::PVEInstance;
+use Proxmox::Test::Util qw(random_vmid);
my $pve = Proxmox::Test::PVEInstance->new_local();
my $node = $pve->get_nodename();
-my $vmid = $pve->client()->get("/cluster/nextid");
+my $vmid = random_vmid($pve->client());
# First check if we have any CT templates
my $storage_content =
diff --git a/hw-validation-tests/tests/storage_local.pl b/hw-validation-tests/tests/storage_local.pl
index 5490a88..b5800bb 100755
--- a/hw-validation-tests/tests/storage_local.pl
+++ b/hw-validation-tests/tests/storage_local.pl
@@ -5,6 +5,7 @@ use Test::More;
use lib '..';
use Proxmox::Test::PVEInstance;
+use Proxmox::Test::Util qw(random_vmid);
my $pve = Proxmox::Test::PVEInstance->new_local();
my $node = $pve->get_nodename();
@@ -38,7 +39,7 @@ is($config->{path}, '/var/tmp/hw_validation_testdir', "Local storage created cor
# 5.4 Basic I/O Benchmark (Local) - placeholder for actual dd/fio commands
# Proxmox API doesn't have a direct 'run fio benchmark' endpoint, but we can verify
# the storage is writable by uploading a small test ISO or creating a small VM disk.
-my $vmid = eval { $pve->client()->get("/cluster/nextid", {}) };
+my $vmid = eval { random_vmid($pve->client()) };
if ($vmid) {
# Attempt to allocate disk space
my $volid = eval {
--
2.47.3
next prev parent reply other threads:[~2026-09-17 16:24 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-17 16:23 [PATCH test-tools,e2e-tests 0/6] randomly select VMIDs for test Michael Köppl
2026-09-17 16:23 ` [PATCH test-tools 1/6] runner: add vmid-range option for test guest VMIDs Michael Köppl
2026-09-17 16:23 ` [PATCH e2e-tests 2/6] lib: add function for drawing a random unused VMID Michael Köppl
2026-09-17 16:23 ` [PATCH e2e-tests 3/6] storage-plugin: use random_vmid function for getting VMIDs Michael Köppl
2026-09-17 16:23 ` Michael Köppl [this message]
2026-09-17 16:23 ` [PATCH e2e-tests 5/6] tests: " Michael Köppl
2026-09-17 16:23 ` [PATCH e2e-tests 6/6] storage-plugin: README: document the vmid-range option Michael Köppl
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=20260917162324.1926056-5-m.koeppl@proxmox.com \
--to=m.koeppl@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.