From 11416b61575441a4d6e46504ee677ca39d627c01 Mon Sep 17 00:00:00 2001 From: Pascal Scholz Date: Fri, 24 Apr 2026 16:44:30 +0200 Subject: [PATCH] tests: Extend Windows boot tests by live migration We need to ensure that we can live migrate Windows, not only boot it. We therefore extend the simple boot tests by live migration. Signed-off-by: Pascal Scholz On-behalf-of: SAP pascal.scholz@sap.com --- tests/testsuite_windows_cpu_profiles.py | 11 ++++++++++- tests/testsuite_windows_default.py | 11 ++++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/tests/testsuite_windows_cpu_profiles.py b/tests/testsuite_windows_cpu_profiles.py index 336f9ce..3954c84 100644 --- a/tests/testsuite_windows_cpu_profiles.py +++ b/tests/testsuite_windows_cpu_profiles.py @@ -46,7 +46,8 @@ def setUpClass(cls): def test_windows_boot(self): """ - Test that we do not introduce a regression with respect to booting windows. + Test that we do not introduce a regression with respect to + booting and migrating windows. """ controllerVM.succeed( @@ -54,6 +55,14 @@ def test_windows_boot(self): ) controllerVM.succeed("virsh start testvm") wait_for_ssh(controllerVM, user="administrator", password="FOO99bar!!") + controllerVM.succeed( + "virsh migrate --domain testvm --desturi ch+tcp://computeVM/session --persistent --live --p2p --parallel --parallel-connections 4" + ) + wait_for_ssh(computeVM, user="administrator", password="FOO99bar!!") + computeVM.succeed( + "virsh migrate --domain testvm --desturi ch+tcp://controllerVM/session --persistent --live --p2p --parallel --parallel-connections 4" + ) + wait_for_ssh(controllerVM, user="administrator", password="FOO99bar!!") def suite(): diff --git a/tests/testsuite_windows_default.py b/tests/testsuite_windows_default.py index 2812772..a4094ff 100644 --- a/tests/testsuite_windows_default.py +++ b/tests/testsuite_windows_default.py @@ -46,12 +46,21 @@ def setUpClass(cls): def test_windows_boot(self): """ - Test that we do not introduce a regression with respect to booting windows. + Test that we do not introduce a regression with respect to + booting and migrating windows. """ controllerVM.succeed("virsh define /etc/domain-windows-server.xml") controllerVM.succeed("virsh start testvm") wait_for_ssh(controllerVM, user="administrator", password="FOO99bar!!") + controllerVM.succeed( + "virsh migrate --domain testvm --desturi ch+tcp://computeVM/session --persistent --live --p2p --parallel --parallel-connections 4" + ) + wait_for_ssh(computeVM, user="administrator", password="FOO99bar!!") + computeVM.succeed( + "virsh migrate --domain testvm --desturi ch+tcp://controllerVM/session --persistent --live --p2p --parallel --parallel-connections 4" + ) + wait_for_ssh(controllerVM, user="administrator", password="FOO99bar!!") def suite():