1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2025-08-29 10:35:58 +00:00

Successfully pass server and freerdp

This commit is contained in:
Lukáš Růžička 2025-08-01 13:47:30 +02:00 committed by Adam Williamson
parent 6a81e36093
commit d709468d9f
2 changed files with 10 additions and 16 deletions

View File

@ -28,32 +28,26 @@ sub run {
# Open terminal and make a connection to the remote server.
menu_launch_type("terminal");
wait_still_screen(3);
enter_cmd("xfreerdp /u:$rdpuser /p:$rdppass /v:$ip /sec:tls");
enter_cmd("xfreerdp /u:$rdpuser /p:$rdppass /v:$ip /sec:nla /cert:ignore");
# Check that a connection window has appeared.
assert_screen("connection_window");
# Log onto the system.
assert_and_check("connection_login_screen");
send_key("ret");
sleep(2);
type_very_safely("$password\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");
# Check that we have logged in.
assert_screen("connection_login_account");
# Unlock parallel connection.
mutex_unlock("kaermorhen_opened");
}
sub test_flags {
return {fatal => 1, milestone => 1};
return {fatal => 1};
}
1;
# vim: set sw=4 et:

View File

@ -55,15 +55,16 @@ sub run {
send_key("alt-f4");
# RDP does not allow connections when the user is still logged in
# locally, therefore we need to log the user out first.
# locally, so let's reboot the machine to start from anew.
assert_and_click("system_menu_button");
assert_and_click("leave_button");
assert_and_click("log_out_entry");
assert_and_click("log_out_confirm");
sleep(10);
assert_and_click("reboot_entry");
assert_and_click("gnome_reboot_confirm");
assert_screen("graphical_login", 180);
# Check that the service is running.
# Check that the service is running. If the service was not running,
# let's record a soft failure and start the RDP service.
$self->root_console(tty => 3);
if (script_run("systemctl status gnome-remote-desktop --no-pager")) {
record_soft_failure("The Gnome Remote Desktop service is not running.");
@ -73,7 +74,6 @@ sub run {
# Create mutex to synchronise with the children.
mutex_create("kaermorhen_opened");
wait_for_children();
}
sub test_flags {