2019-01-29 14:40:52 +00:00
|
|
|
use base "installedtest";
|
|
|
|
use strict;
|
|
|
|
use testapi;
|
|
|
|
use utils;
|
|
|
|
|
|
|
|
# This test checks that Firewall starts.
|
|
|
|
|
|
|
|
sub run {
|
|
|
|
my $self = shift;
|
2024-04-16 01:12:08 +00:00
|
|
|
my $password = get_var('ROOT_PASSWORD', 'weakpassword');
|
2022-07-28 20:32:57 +00:00
|
|
|
|
2019-01-29 14:40:52 +00:00
|
|
|
# Start the application
|
2019-05-07 09:42:36 +00:00
|
|
|
menu_launch_type 'firewall';
|
2019-01-29 14:40:52 +00:00
|
|
|
# Firewall requires password to be entered and confirmed to start.
|
2019-05-07 09:42:36 +00:00
|
|
|
# View password
|
2022-12-05 14:16:16 +00:00
|
|
|
assert_screen "auth_required", timeout => 60;
|
2024-04-16 01:12:08 +00:00
|
|
|
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;
|
2019-01-29 14:40:52 +00:00
|
|
|
send_key 'ret';
|
2024-04-16 01:12:08 +00:00
|
|
|
wait_still_screen 3;
|
2019-05-07 09:42:36 +00:00
|
|
|
|
2019-01-29 14:40:52 +00:00
|
|
|
# Check that it is started
|
|
|
|
assert_screen 'firewall_runs';
|
|
|
|
# Close the application
|
|
|
|
quit_with_shortcut();
|
|
|
|
}
|
|
|
|
|
|
|
|
sub test_flags {
|
2024-04-12 19:45:47 +00:00
|
|
|
return {};
|
2019-01-29 14:40:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
1;
|
|
|
|
|
|
|
|
# vim: set sw=4 et:
|