mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-12-02 10:03:08 +00:00
Compare commits
No commits in common. "d381631c11677f6dd9265fcbd9895a5d09071f4b" and "4f073764e9be2033097bee997c3fbfed4a8d7b0d" have entirely different histories.
d381631c11
...
4f073764e9
@ -3,50 +3,11 @@ use strict;
|
|||||||
use testapi;
|
use testapi;
|
||||||
use utils;
|
use utils;
|
||||||
|
|
||||||
# This test uses a Connections application to establish an
|
|
||||||
# RDP connection to a remote computer running Gnome Workstation.
|
|
||||||
|
|
||||||
sub run {
|
sub run {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
my $user = "";
|
|
||||||
my $password = "";
|
|
||||||
my $ip = "";
|
|
||||||
|
|
||||||
# Switch to console and perform settings.
|
boot_to_login_screen(timeout => 300);
|
||||||
$self->root_console(tty => 3);
|
$self->root_console(tty => 3);
|
||||||
assert_script_run("hostnamectl set-hostname pawn");
|
|
||||||
|
|
||||||
# Return to the desktop
|
|
||||||
desktop_vt();
|
|
||||||
|
|
||||||
# Open the Connections and start the connection.
|
|
||||||
menu_launch_type("connections");
|
|
||||||
wait_still_screen(3)
|
|
||||||
assert_screen("connections_runs");
|
|
||||||
assert_and_click("connections_add_connection");
|
|
||||||
type_very_safely($ip);
|
|
||||||
assert_and_click("gnome_button_connect")
|
|
||||||
|
|
||||||
# Log onto the system.
|
|
||||||
assert_screen("connection_authorization");
|
|
||||||
assert_and_click("connection_namefield");
|
|
||||||
type_very_safely($user);
|
|
||||||
send_key("tab");
|
|
||||||
send_key("tab");
|
|
||||||
type_very_safely($password);
|
|
||||||
assert_and_click("connection_authenticate");
|
|
||||||
wait_still_screen(3);
|
|
||||||
send_key("ret");
|
|
||||||
type_very_safely("$syspw\n");
|
|
||||||
wait_still_screen(2);
|
|
||||||
|
|
||||||
# Start the terminal
|
|
||||||
type_very_safely("terminal\n");
|
|
||||||
wait_still_screen(3);
|
|
||||||
|
|
||||||
# Check that we are on the correct computer.
|
|
||||||
# We can tell from the terminal prompt.
|
|
||||||
assert_screen("freerdp_desktop_connected");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sub test_flags {
|
sub test_flags {
|
||||||
|
@ -22,25 +22,17 @@ sub run {
|
|||||||
|
|
||||||
# Open terminal and make a connection to the remote server.
|
# Open terminal and make a connection to the remote server.
|
||||||
menu_launch_type("terminal");
|
menu_launch_type("terminal");
|
||||||
wait_still_screen(3);
|
wait_still_screen(2);
|
||||||
enter_cmd("xfreerdp /:u $user /:p $password /:v $ip");
|
enter_cmd("xfreerdp /:u $user /:p $password /:v $ip");
|
||||||
|
|
||||||
# Check that a connection window has appeared.
|
# Check that a connection window has appeared.
|
||||||
assert_screen("connection_window");
|
assert_screen("freerdp_connection_window");
|
||||||
|
|
||||||
# Log onto the system.
|
# Perform login, start terminal and check the hostname.
|
||||||
assert_and_check("connection_login_screen");
|
assert_and_check("freerdp_login_screen");
|
||||||
send_key("ret");
|
send_key("ret");
|
||||||
sleep(2);
|
sleep(2);
|
||||||
type_very_safely("$syspw\n");
|
type_very_safely($syspw);
|
||||||
wait_still_screen(2);
|
|
||||||
|
|
||||||
# Start the terminal
|
|
||||||
type_very_safely("terminal\n");
|
|
||||||
wait_still_screen(3);
|
|
||||||
|
|
||||||
# Check that we are on the correct computer.
|
|
||||||
# We can tell from the terminal prompt.
|
|
||||||
assert_screen("freerdp_desktop_connected");
|
assert_screen("freerdp_desktop_connected");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user