mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-11-30 17:33:07 +00:00
34eba25858
This is obviously more prone to mistypes, but firewall-config seems to be timing out if we take more than 25 seconds to type the password, and we take juuust too long with type_very_safely, even after tweaking the sleeps to shorter wait_still_screens here. We could twiddle with those even more, but let's just go with type_safely for now, if that turns out to be too unreliable I'll change tack. Signed-off-by: Adam Williamson <awilliam@redhat.com>
38 lines
805 B
Perl
38 lines
805 B
Perl
use base "installedtest";
|
|
use strict;
|
|
use testapi;
|
|
use utils;
|
|
|
|
# This test checks that Firewall starts.
|
|
|
|
sub run {
|
|
my $self = shift;
|
|
my $password = get_var('ROOT_PASSWORD', 'weakpassword');
|
|
|
|
# Start the application
|
|
menu_launch_type 'firewall';
|
|
# Firewall requires password to be entered and confirmed to start.
|
|
# View password
|
|
assert_screen "auth_required", timeout => 60;
|
|
wait_still_screen 3;
|
|
# FIXME when https://github.com/firewalld/firewalld/issues/1328
|
|
# is fixed, switch (back) to type_very_safely here
|
|
type_safely $password;
|
|
send_key 'ret';
|
|
wait_still_screen 3;
|
|
|
|
# Check that it is started
|
|
assert_screen 'firewall_runs';
|
|
# Close the application
|
|
quit_with_shortcut();
|
|
}
|
|
|
|
sub test_flags {
|
|
return {};
|
|
}
|
|
|
|
|
|
1;
|
|
|
|
# vim: set sw=4 et:
|