1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-12-18 08:33:08 +00:00
os-autoinst-distri-fedora/tests/_rdp_client_connect_pre.pm
Lukas Ruzicka e95996fd02 Rewrite tests from VNC to RDP
The VNC installation method has been replaced with a similar method
based on RDP. This PR uses the old mechanism and alters it for the
RDP method.

The test suite consists of two parts, a server and a client part.
The server is the real test on which Fedora Custom installation
is performed from the client via RDP.

The client is spinned off the pre-installed desktop image.

Fixes #345
2024-12-05 12:14:01 +01:00

32 lines
893 B
Perl

use base "installedtest";
use strict;
use tapnet;
use testapi;
use utils;
sub run {
my $self = shift;
boot_to_login_screen(timeout => 300);
$self->root_console(tty => 3);
setup_tap_static('172.16.2.115', 'rdp002.test.openqa.fedoraproject.org');
# test test: check if we can see the server
assert_script_run "ping -c 2 172.16.2.114";
# We try to connect through Connections which should
# be installed by default, however if this is not
# the case, we do not want the test to fail, so we will
# install the app and record a soft failure.
if (script_run("rpm -qa | grep gnome-connections", timeout => 30)) {
assert_script_run("dnf install -y gnome-connections", timeout => 120);
record_soft_failure("Gnome Connections are not installed.");
}
desktop_vt;
}
sub test_flags {
return {fatal => 1};
}
1;
# vim: set sw=4 et: