1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2025-09-30 09:48:49 +00:00
os-autoinst-distri-fedora/tests/server_cockpit_autoupdate.pm
Lukas Ruzicka c79292bc55 Create updates tests for Cockpit.
Fix bugs and finish the test.

Add to templates.

Add methods to provide packages to update.

Experiment with the logic.

Experiment with the logic.

Reprogram the update test.

Save progress.

Save progress.
2019-06-04 11:42:57 -07:00

40 lines
828 B
Perl

use base "installedtest";
use strict;
use testapi;
use utils;
use packagetest;
sub cockpit_update {
# This routine starts the Cockpit, logs in, and goes to the update page.
# run firefox and login to cockpit
start_cockpit(1);
# go to the updates screen
assert_and_click "cockpit_software_updates", '', 120;
# wait for the updates to download
while (!check_screen('cockpit_updates_check',1)) {
sleep 5;
}
}
sub run {
my $self=shift;
bypass_1691487;
# Start Cockpit
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';
}
sub test_flags {
return { always_rolllback => 1 };
}
1;
# vim: set sw=4 et: