mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2025-11-30 04:45:59 +00:00
This adds a test for remote connection. It consists of a server part in which Gnome RDP connection is set up, enabled, and the server is run, and the client part that uses Connections as a client to connect to the server. The test is considered successful when the connection is established and the user has logged into the system. Fixes: https://pagure.io/fedora-qa/os-autoinst-distri-fedora/issue/333
45 lines
1.2 KiB
Perl
45 lines
1.2 KiB
Perl
use base "installedtest";
|
|
use strict;
|
|
use testapi;
|
|
use utils;
|
|
|
|
# This tests creates a drop-in schema to change the default behaviour of Gnome session.
|
|
|
|
|
|
sub run {
|
|
my $self = shift;
|
|
# Setting variables for better clarity
|
|
my $target_file = "/usr/share/glib-2.0/schemas/99_openqa.gschema.override";
|
|
my $source_file = get_var("GNOME_SCHEMA"); # We know it exists or we would not be here.
|
|
|
|
# Switch to the root console to perform operations
|
|
$self->root_console(tty => 3);
|
|
|
|
# Download the drop-in file, move it to the selected directory
|
|
# and compile the new schemas.
|
|
assert_script_run("curl --retry-delay 10 --max-time 30 --retry 5 -o /tmp/schema_file $source_file");
|
|
assert_script_run("mv /tmp/schema_file $target_file");
|
|
assert_script_run("glib-compile-schemas /usr/share/glib-2.0/schemas/");
|
|
|
|
# Reboot the system.
|
|
enter_cmd("reboot");
|
|
|
|
# Wait to boot
|
|
boot_to_login_screen(300);
|
|
|
|
# Login to the desktop
|
|
dm_perform_login('gnome', get_var("USER_PASSWORD", "weakpassword"));
|
|
|
|
# Verify that we have logged in
|
|
check_desktop(120);
|
|
}
|
|
|
|
sub test_flags {
|
|
return {fatal => 1, milestone => 1};
|
|
}
|
|
|
|
1;
|
|
|
|
# vim: set sw=4 et:
|
|
|