Add QA:Testcase_Anaconda_User_Interface_VNC_Vncconnect tests

This adds tests for vncconnect, a variation on VNC install using
reverse VNC (where the client waits for the server to connect to
it). Very similar to the regular-VNC test, but we have to use
tigervnc as Boxes doesn't do reverse VNC.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2019-11-06 16:43:20 -08:00
parent 4f72d4ebd3
commit 4c05f19a9f
2 changed files with 80 additions and 0 deletions

View file

@ -821,6 +821,28 @@
},
test_suite => { name => "install_vnc_client" },
},
{
machine => { name => "64bit" },
prio => 40,
product => {
arch => "x86_64",
distri => "fedora",
flavor => "Server-dvd-iso",
version => "*",
},
test_suite => { name => "install_vncconnect_server" },
},
{
machine => { name => "64bit" },
prio => 40,
product => {
arch => "x86_64",
distri => "fedora",
flavor => "Server-dvd-iso",
version => "*",
},
test_suite => { name => "install_vncconnect_client" },
},
{
machine => { name => "64bit" },
prio => 20,
@ -5162,6 +5184,35 @@
{ key => "WORKER_CLASS", value => "tap" },
],
},
{
name => "install_vncconnect_server",
settings => [
{ key => "VNC_SERVER", value => "1" },
{ key => "GRUB", value => "inst.vnc inst.vncconnect=10.0.2.117:5500 net.ifnames=0 biosdevname=0 ip=10.0.2.116::10.0.2.2:255.255.255.0:vnc003.domain.local:eth0:off" },
# it's important that we set PARALLEL_WITH *here* and
# not for the client test due to mutex locking - we
# want the client test to be the 'parent' as it makes
# the mutex stuff simpler
{ key => "PARALLEL_WITH", value => "install_vncconnect_client" },
{ key => "INSTALL_UNLOCK", value => "vncconnect_client_ready" },
{ key => "NICTYPE", value => "tap" },
{ key => "WORKER_CLASS", value => "tap" },
],
},
{
name => "install_vncconnect_client",
settings => [
{ key => "VNC_CLIENT", value => "1" },
{ key => "BOOTFROM", value => "c" },
{ key => "INSTALL", value => "1" },
{ key => "DESKTOP", value => "gnome" },
{ key => "HDD_1", value => "disk_f%CURRREL%_desktop_4_x86_64.img" },
{ key => "PREINSTALL", value => "_graphical_wait_login _vncconnect_client_setup" },
{ key => "GRUB_POSTINSTALL", value => "net.ifnames=0 biosdevname=0" },
{ key => "NICTYPE", value => "tap" },
{ key => "WORKER_CLASS", value => "tap" },
],
},
{
name => "base_selinux",
settings => [

View file

@ -0,0 +1,29 @@
use base "installedtest";
use strict;
use lockapi;
use tapnet;
use testapi;
use utils;
sub run {
my $self = shift;
$self->root_console(tty=>3);
setup_tap_static('10.0.2.117', 'vnc004.domain.local');
# install tigervnc (Boxes doesn't do reverse VNC)
assert_script_run "dnf -y install tigervnc", 180;
# take down the firewall
assert_script_run "systemctl stop firewalld";
desktop_vt;
menu_launch_type 'terminal';
wait_still_screen 5;
type_safely "vncviewer -FullScreen -listen\n";
mutex_create 'vncconnect_client_ready';
}
sub test_flags {
return { fatal => 1 };
}
1;
# vim: set sw=4 et: