1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-21 21:43:08 +00:00

Added 'server_delete_pata' testsuite

This commit is contained in:
Garret Raziel 2015-01-27 14:22:35 +01:00 committed by Josef Skladanka
parent 47e8c38dca
commit 0c18688663
7 changed files with 83 additions and 0 deletions

View File

@ -30,6 +30,9 @@ unless (get_var("KICKSTART"))
elsif (get_var('DISK_GUIDED_MULTI')){ elsif (get_var('DISK_GUIDED_MULTI')){
autotest::loadtest get_var('CASEDIR')."/tests/disk_guided_multi.pm"; autotest::loadtest get_var('CASEDIR')."/tests/disk_guided_multi.pm";
} }
elsif (get_var('DISK_GUIDED_DELETE_ALL')){
autotest::loadtest get_var('CASEDIR')."/tests/disk_guided_delete_all.pm";
}
# Start installation, set user & root passwords, reboot # Start installation, set user & root passwords, reboot
autotest::loadtest get_var('CASEDIR')."/tests/_do_install_and_reboot.pm"; autotest::loadtest get_var('CASEDIR')."/tests/_do_install_and_reboot.pm";

View File

@ -0,0 +1,17 @@
{
"area": [
{
"xpos": 920,
"ypos": 506,
"width": 100,
"height": 41,
"type": "match"
}
],
"tags": [
"anaconda_install_destination_delete_all_btn",
"ENV-DISTRI-fedora",
"ENV-INSTLANG-en_US",
"ENV-FLAVOR-server"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

View File

@ -0,0 +1,17 @@
{
"tags": [
"anaconda_install_destination_reclaim_space_btn",
"ENV-DISTRI-fedora",
"ENV-INSTLANG-en_US",
"ENV-FLAVOR-server"
],
"area": [
{
"xpos": 681,
"ypos": 553,
"width": 108,
"height": 22,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 98 KiB

View File

@ -79,5 +79,16 @@
], ],
variables => "", variables => "",
}, },
{
name => "server_delete_pata",
prio => 5,
settings => [
{ key => "DISK_GUIDED_DELETE_ALL", value => "1" },
{ key => "HDDMODEL", value => "ide-hd" },
{ key => "HDDVERSION", value => "Full disk" },
{ key => "HDD_1", value => "disk_full.img" },
],
variables => "",
},
], ],
} }

View File

@ -0,0 +1,35 @@
use base "basetest";
use strict;
use testapi;
sub run {
# Anaconda hub
assert_screen "anaconda_main_hub", 300; #
# Default install destination (hdd should be empty for new KVM machine)
assert_and_click "anaconda_main_hub_install_destination";
assert_and_click "anaconda_spoke_done";
assert_and_click "anaconda_install_destination_reclaim_space_btn";
assert_and_click "anaconda_install_destination_delete_all_btn";
assert_and_click "anaconda_install_destination_reclaim_space_btn";
# Anaconda hub
assert_screen "anaconda_main_hub", 300; #
}
sub test_flags {
# without anything - rollback to 'lastgood' snapshot if failed
# 'fatal' - whole test suite is in danger if this fails
# 'milestone' - after this test succeeds, update 'lastgood'
# 'important' - if this fails, set the overall state to 'fail'
return { important => 1 };
}
1;
# vim: set sw=4 et: