mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-11-09 01:04:20 +00:00
d82f4ecd7f
* server-cockpit-updates tests that Cockpit can be used to update the system. * server-cockpit-autoupdate tests that users can use dnf-automatic for system updates. * cockpit functions were removed from utils.pm and put into an extra library for cockpit - cockpit.pm which all cockpit tests are now using. Review cockpit.pm Review autoupdate test. Review the update test. Fix typo in cockpit.pm Add sleep. Add missing command. Delete an unused needle.
45 lines
1.0 KiB
Perl
45 lines
1.0 KiB
Perl
use base "installedtest";
|
|
use strict;
|
|
use testapi;
|
|
use utils;
|
|
use packagetest;
|
|
use cockpit;
|
|
|
|
sub run {
|
|
my $self=shift;
|
|
bypass_1691487;
|
|
|
|
# Start Cockpit
|
|
start_cockpit(1);
|
|
|
|
# Navigate to the Update screen
|
|
select_cockpit_update();
|
|
|
|
# Switch on automatic updates
|
|
assert_and_click 'cockpit_updates_auto', '', 120;
|
|
assert_and_click 'cockpit_updates_dnf_install', '', 120;
|
|
assert_screen 'cockpit_updates_auto_on';
|
|
|
|
# Check the default automatic settings Everyday at 6 o'clock.
|
|
assert_screen 'autoupdate_planned_day';
|
|
assert_screen 'autoupdate_planned_time';
|
|
|
|
# Quit Cockpit
|
|
send_key "ctrl-q";
|
|
sleep 3;
|
|
|
|
# Check that the dnf-automatic service has started
|
|
assert_script_run "systemctl is-active dnf-automatic-install.timer";
|
|
|
|
# Check that it is scheduled correctly
|
|
validate_script_output "systemctl show dnf-automatic-install.timer | grep TimersCalendar", sub {$_ =~ "06:00:00" };
|
|
}
|
|
|
|
sub test_flags {
|
|
return { always_rolllback => 1 };
|
|
}
|
|
|
|
1;
|
|
|
|
# vim: set sw=4 et:
|