mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-11-21 13:33:08 +00:00
Create the basic client file.
This commit is contained in:
parent
fbc969594c
commit
1889ddaaa3
43
tests/remote_desktop_freerdp.pm
Normal file
43
tests/remote_desktop_freerdp.pm
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
use base "installedtest";
|
||||||
|
use strict;
|
||||||
|
use testapi;
|
||||||
|
use utils;
|
||||||
|
|
||||||
|
# This test uses a freerdp connection to a remote computer
|
||||||
|
# running Gnome Workstation.
|
||||||
|
|
||||||
|
sub run {
|
||||||
|
my $self = shift;
|
||||||
|
my $user = "";
|
||||||
|
my $password = "";
|
||||||
|
my $ip = "";
|
||||||
|
|
||||||
|
# Switch to console and install the necessary packages.
|
||||||
|
$self->root_console(tty => 3);
|
||||||
|
assert_script_run("hostnamectl set-hostname pawn");
|
||||||
|
assert_script_run("dnf install -y freerdp", timeout => 60);
|
||||||
|
|
||||||
|
# Return to the desktop
|
||||||
|
desktop_vt();
|
||||||
|
|
||||||
|
# Open terminal and make a connection to the remote server.
|
||||||
|
menu_launch_type("terminal");
|
||||||
|
wait_still_screen(2);
|
||||||
|
enter_cmd("xfreerdp /:u $user /:p $password /:v $ip");
|
||||||
|
|
||||||
|
# Check that a connection window has appeared.
|
||||||
|
assert_screen("freerdp_connection_window");
|
||||||
|
|
||||||
|
# Perform login, start terminal and check the hostname.
|
||||||
|
assert_and_check("freerdp_login_screen");
|
||||||
|
send_key("ret");
|
||||||
|
sleep(2);
|
||||||
|
type_very_safely($syspw);
|
||||||
|
assert_screen("freerdp_desktop_connected");
|
||||||
|
}
|
||||||
|
|
||||||
|
sub test_flags {
|
||||||
|
return {fatal => 1, milestone => 1};
|
||||||
|
}
|
||||||
|
1;
|
||||||
|
# vim: set sw=4 et:
|
Loading…
Reference in New Issue
Block a user