Compare commits
12 Commits
aa388920d5
...
d002ba6c14
Author | SHA1 | Date | |
---|---|---|---|
|
d002ba6c14 | ||
|
37ade4a489 | ||
|
bf7de6110c | ||
|
b06103b620 | ||
|
5ff211b693 | ||
|
a9979400bc | ||
|
cc9172bff2 | ||
|
f91fe5ef5f | ||
|
3fc62ba149 | ||
|
c5d083332b | ||
|
9333c24257 | ||
|
803da8422d |
15
needles/gnome/apps/settings/settings_remote_desktop.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"settings_remote_desktop"
|
||||
],
|
||||
"area": [
|
||||
{
|
||||
"xpos": 395,
|
||||
"ypos": 303,
|
||||
"width": 113,
|
||||
"height": 21,
|
||||
"type": "match"
|
||||
}
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/settings/settings_remote_desktop.png
Normal file
After Width: | Height: | Size: 182 KiB |
15
needles/gnome/apps/settings/settings_remote_login.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"settings_remote_login"
|
||||
],
|
||||
"area": [
|
||||
{
|
||||
"xpos": 654,
|
||||
"ypos": 71,
|
||||
"width": 121,
|
||||
"height": 23,
|
||||
"type": "match"
|
||||
}
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/settings/settings_remote_login.png
Normal file
After Width: | Height: | Size: 194 KiB |
15
needles/gnome/apps/settings/settings_remote_password.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"settings_remote_password"
|
||||
],
|
||||
"area": [
|
||||
{
|
||||
"xpos": 366,
|
||||
"ypos": 590,
|
||||
"width": 69,
|
||||
"height": 20,
|
||||
"type": "match"
|
||||
}
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/settings/settings_remote_password.png
Normal file
After Width: | Height: | Size: 194 KiB |
15
needles/gnome/apps/settings/settings_remote_username.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"settings_remote_username"
|
||||
],
|
||||
"area": [
|
||||
{
|
||||
"xpos": 366,
|
||||
"ypos": 535,
|
||||
"width": 72,
|
||||
"height": 20,
|
||||
"type": "match"
|
||||
}
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/settings/settings_remote_username.png
Normal file
After Width: | Height: | Size: 194 KiB |
15
needles/gnome/apps/settings/settings_switch_remote.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"settings_switch_remote"
|
||||
],
|
||||
"area": [
|
||||
{
|
||||
"xpos": 366,
|
||||
"ypos": 208,
|
||||
"width": 165,
|
||||
"height": 22,
|
||||
"type": "match"
|
||||
}
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/settings/settings_switch_remote.png
Normal file
After Width: | Height: | Size: 192 KiB |
15
needles/gnome/apps/settings/settings_system.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"settings_system"
|
||||
],
|
||||
"area": [
|
||||
{
|
||||
"xpos": 67,
|
||||
"ypos": 164,
|
||||
"width": 55,
|
||||
"height": 20,
|
||||
"type": "match"
|
||||
}
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/settings/settings_system.png
Normal file
After Width: | Height: | Size: 164 KiB |
15
needles/gnome/gnome_button_unlock.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"gnome_button_unlock"
|
||||
],
|
||||
"area": [
|
||||
{
|
||||
"xpos": 914,
|
||||
"ypos": 119,
|
||||
"width": 67,
|
||||
"height": 19,
|
||||
"type": "match"
|
||||
}
|
||||
]
|
||||
}
|
BIN
needles/gnome/gnome_button_unlock.png
Normal file
After Width: | Height: | Size: 192 KiB |
15
needles/gnome/gnome_reveil_password.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"gnome_reveil_password"
|
||||
],
|
||||
"area": [
|
||||
{
|
||||
"xpos": 833,
|
||||
"ypos": 591,
|
||||
"width": 20,
|
||||
"height": 20,
|
||||
"type": "match"
|
||||
}
|
||||
]
|
||||
}
|
BIN
needles/gnome/gnome_reveil_password.png
Normal file
After Width: | Height: | Size: 194 KiB |
@ -2515,6 +2515,37 @@
|
||||
"USER_LOGIN": "false"
|
||||
}
|
||||
},
|
||||
"remote_desktop_server": {
|
||||
"profiles": {
|
||||
"fedora-Workstation-live-iso-x86_64-*-64bit": 35
|
||||
},
|
||||
"settings": {
|
||||
"BOOTFROM": "c",
|
||||
"HDD_1": "disk_%FLAVOR%_%MACHINE%.qcow2",
|
||||
"NICTYPE": "tap",
|
||||
"POSTINSTALL": "remote_desktop_server",
|
||||
"POST_STATIC": "172.16.2.107 king.test.openqa.fedoraproject.org",
|
||||
"ROOT_PASSWORD": "weakpassword",
|
||||
"START_AFTER_TEST": "%DEPLOY_UPLOAD_TEST%",
|
||||
"WORKER_CLASS": "tap"
|
||||
}
|
||||
},
|
||||
"remote_desktop_freerdp": {
|
||||
"profiles": {
|
||||
"fedora-Workstation-live-iso-x86_64-*-64bit": 40
|
||||
},
|
||||
"settings": {
|
||||
"BOOTFROM": "c",
|
||||
"HDD_1": "disk_%FLAVOR%_%MACHINE%.qcow2",
|
||||
"NICTYPE": "tap",
|
||||
"POSTINSTALL": "remote_desktop_client",
|
||||
"PARALLEL_WITH": "remote_desktop_server",
|
||||
"POST_STATIC": "172.16.2.108 pawn.test.openqa.fedoraproject.org",
|
||||
"ROOT_PASSWORD": "weakpassword",
|
||||
"START_AFTER_TEST": "%DEPLOY_UPLOAD_TEST%",
|
||||
"WORKER_CLASS": "tap"
|
||||
}
|
||||
},
|
||||
"rpmostree_overlay": {
|
||||
"profiles": {
|
||||
"fedora-CoreOS-colive-iso-x86_64-*-64bit": 20,
|
||||
|
56
tests/remote_desktop_client.pm
Normal file
@ -0,0 +1,56 @@
|
||||
use base "installedtest";
|
||||
use strict;
|
||||
use testapi;
|
||||
use utils;
|
||||
|
||||
# This test uses a Connections application to establish an
|
||||
# RDP connection to a remote computer running Gnome Workstation.
|
||||
|
||||
sub run {
|
||||
my $self = shift;
|
||||
my $user = "";
|
||||
my $password = "";
|
||||
my $ip = "";
|
||||
|
||||
# Switch to console and perform settings.
|
||||
$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 {
|
||||
return {fatal => 1, milestone => 1};
|
||||
}
|
||||
1;
|
||||
# vim: set sw=4 et:
|
51
tests/remote_desktop_freerdp.pm
Normal file
@ -0,0 +1,51 @@
|
||||
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(3);
|
||||
enter_cmd("xfreerdp /:u $user /:p $password /:v $ip");
|
||||
|
||||
# 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("$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 {
|
||||
return {fatal => 1, milestone => 1};
|
||||
}
|
||||
1;
|
||||
# vim: set sw=4 et:
|
66
tests/remote_desktop_server.pm
Normal file
@ -0,0 +1,66 @@
|
||||
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");
|
||||
|
||||
$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");
|
||||
|
||||
# Let's also change the hostname so that we can
|
||||
# differentiate later.
|
||||
assert_script_run("hostnamectl set-hostname king");
|
||||
|
||||
# Change to Desktop
|
||||
desktop_vt();
|
||||
|
||||
# Open Settings and navigate to Remote Login
|
||||
menu_launch_type("Settings");
|
||||
send_key("ctrl-f");
|
||||
sleep(2);
|
||||
type_very_safely("system");
|
||||
assert_and_click("settings_system");
|
||||
assert_and_click("settings_remote_desktop");
|
||||
assert_and_click("settings_remote_login");
|
||||
assert_and_click("gnome_button_unlock");
|
||||
if (check_screen("auth_required_password", timeout => 60)) {
|
||||
type_very_safely("$password\n");
|
||||
}
|
||||
else {
|
||||
die("Authentication dialogue is not visible but was expected.");
|
||||
}
|
||||
|
||||
# Set up remote login in Gnome Settings.
|
||||
assert_and_click("settings_switch_remote");
|
||||
wait_still_screen(3);
|
||||
assert_and_click("settings_remote_username");
|
||||
type_very_safely("remotee");
|
||||
assert_and_click("settings_remote_password");
|
||||
type_very_safely("opensesame");
|
||||
assert_and_click("gnome_reveil_password");
|
||||
wait_still_screen(3);
|
||||
send_key("alt-f4");
|
||||
|
||||
# Check that the service is running.
|
||||
$self->root_console(tty => 3);
|
||||
assert_script_run("ps aux | grep rdp", timeout => 10);
|
||||
|
||||
}
|
||||
|
||||
sub test_flags {
|
||||
return {fatal => 1};
|
||||
}
|
||||
1;
|
||||
# vim: set sw=4 et:
|
@ -14,9 +14,6 @@ sub run {
|
||||
# Navigate to the Update screen
|
||||
select_cockpit_update();
|
||||
|
||||
# FIXME Workaround for RHBZ #1765685, remove if that is ever fixed
|
||||
sleep 30;
|
||||
|
||||
# Switch on automatic updates
|
||||
assert_and_click 'cockpit_updates_auto', '', 120;
|
||||
assert_and_click 'cockpit_updates_dnf_install', '', 120;
|
||||
|