diff --git a/tests/guest-tools/win/test_guest_tools_win.py b/tests/guest-tools/win/test_guest_tools_win.py index 1b1eb7d2..251797b6 100644 --- a/tests/guest-tools/win/test_guest_tools_win.py +++ b/tests/guest-tools/win/test_guest_tools_win.py @@ -248,6 +248,42 @@ def vm_install_xcpng_v8_tools(self, vm_instance: VM): ) return vm_instance + @pytest.fixture + def vm_install_xcpng_v9_tools(self, vm_instance: VM): + vm = vm_instance + + vm.insert_cd("other-guest-tools-win.iso") + time.sleep(5) + + logging.info("Install VM root certs") + vm.ssh( + [ + "certutil", + "-addstore", + "-f", + "Root", + "D:/xcp-ng-9.0.9000/testsign/XCP-ng_Test_Signer.crt", + ] + ) + vm.ssh( + [ + "certutil", + "-addstore", + "-f", + "TrustedPublisher", + "D:/xcp-ng-9.0.9000/testsign/XCP-ng_Test_Signer.crt", + ] + ) + + vm.eject_cd() + + install_other_drivers( + vm, + "xcp-ng-9.0.9000\\package\\XenDrivers-x64.msi", + is_msi=True, + ) + return vm + @pytest.fixture def vm_install_wu_drivers(self, vm_prepared: VM): (vm, snapshot) = vm_prepared @@ -297,6 +333,11 @@ def test_install_with_xcpng_v8_tools(self, vm_install_xcpng_v8_tools: VM): ) assert exitcode == ERROR_INSTALL_FAILURE + def test_upgrade_with_xcpng_v9_tools(self, vm_install_xcpng_v9_tools: VM): + vm = vm_install_xcpng_v9_tools + install_cert_and_tools(vm, PowerAction.Reboot, check=False) + assert is_drivers_installed(vm) + def test_install_with_citrix_wu(self, vm_install_wu_drivers: VM): exitcode = install_cert_and_tools( vm_install_wu_drivers, PowerAction.Nothing, check=False