mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-11-21 21:43:08 +00:00
Create test files.
This commit is contained in:
parent
4b74b41e2a
commit
c4de21e719
17
tests/remote_desktop_client.pm
Normal file
17
tests/remote_desktop_client.pm
Normal file
@ -0,0 +1,17 @@
|
||||
use base "installedtest";
|
||||
use strict;
|
||||
use testapi;
|
||||
use utils;
|
||||
|
||||
sub run {
|
||||
my $self = shift;
|
||||
|
||||
boot_to_login_screen(timeout => 300);
|
||||
$self->root_console(tty => 3);
|
||||
}
|
||||
|
||||
sub test_flags {
|
||||
return {fatal => 1, milestone => 1};
|
||||
}
|
||||
1;
|
||||
# vim: set sw=4 et:
|
36
tests/remote_desktop_server.pm
Normal file
36
tests/remote_desktop_server.pm
Normal file
@ -0,0 +1,36 @@
|
||||
use base "installedtest";
|
||||
use strict;
|
||||
use testapi;
|
||||
use utils;
|
||||
|
||||
sub run {
|
||||
my $self = shift;
|
||||
my $user = get_var("USER_LOGIN", "test");
|
||||
my $password = get_var("USER_PASSWORD", "weakpassword");
|
||||
|
||||
#boot_to_login_screen(timeout => 300);
|
||||
$self->root_console(tty => 3);
|
||||
# Make necessary settings for the RDP server.
|
||||
# Set SElinux to permissive to workaround a Fedora issue
|
||||
assert_script_run("setenforce 0");
|
||||
# Check that SElinux is in permissive mode
|
||||
validate_script_output("getenforce", sub { m/Permissive/ });
|
||||
|
||||
# In Workstation, the RDP port should be opened per se,
|
||||
# but let's open it explicitely, to make sure it is open.
|
||||
assert_script_run("firewall-cmd --add-port=3389/tcp");
|
||||
|
||||
# Change to Desktop
|
||||
desktop_vt();
|
||||
|
||||
# Open Settings and switch on RDP login
|
||||
menu_launch_type("Settings");
|
||||
assert_and_click("settings_submenu_system");
|
||||
assert_and_click("settings_remote_desktop");
|
||||
assert_and_click("settings_remote_login");
|
||||
|
||||
sub test_flags {
|
||||
return {fatal => 1, milestone => 1};
|
||||
}
|
||||
1;
|
||||
# vim: set sw=4 et:
|
Loading…
Reference in New Issue
Block a user