mirror of
https://github.com/rocky-linux/os-autoinst-distri-rocky.git
synced 2024-11-22 13:11:26 +00:00
b82a1dec6f
This adds a test for QA:Testcase_Anaconda_User_Interface_VNC - the VNC install test case. It's implemented as a server/client pair, with the server booting from the Server DVD image with `inst.vnc` and the client booting from the desktop base disk image, setting up networking, then running Boxes to connect to the server and run the install. There are various little tweaks to test loading and logic to handle this, mostly pretty clear. We also move the workaround for 'spurious auth prompt appears on desktop after you switch away to a VT and back' out of the desktop update test and into the `desktop_vt` helper function, since now this test can hit it as well. We enhance _graphical_wait_login to handle the boot loader if needed (it has never needed to until now). Signed-off-by: Adam Williamson <awilliam@redhat.com>
29 lines
629 B
Perl
29 lines
629 B
Perl
use base "installedtest";
|
|
use strict;
|
|
use tapnet;
|
|
use testapi;
|
|
use utils;
|
|
|
|
sub run {
|
|
my $self = shift;
|
|
$self->root_console(tty=>3);
|
|
setup_tap_static('10.0.2.115', 'vnc002.domain.local');
|
|
# test test: check if we can see the server
|
|
assert_script_run "ping -c 2 10.0.2.114";
|
|
desktop_vt;
|
|
menu_launch_type('boxes');
|
|
assert_and_click('boxes_new_connection');
|
|
assert_and_click('boxes_remote');
|
|
type_safely("vnc://10.0.2.114:5901\n");
|
|
assert_and_click('boxes_allow_inhibit');
|
|
assert_and_click('boxes_fullscreen');
|
|
}
|
|
|
|
sub test_flags {
|
|
return { fatal => 1 };
|
|
}
|
|
|
|
1;
|
|
|
|
# vim: set sw=4 et:
|