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

Added 'server_sata_multi' testsuite

The testsuite covers guided installation on multiple devices.

TODO: change from VirtIO to SATA driver
This commit is contained in:
Josef Skladanka 2015-01-26 17:21:32 +01:00
parent 5264388dc5
commit 780a9afbba
7 changed files with 90 additions and 0 deletions

View File

@ -25,6 +25,9 @@ autotest::loadtest get_var('CASEDIR')."/tests/_boot_to_anaconda.pm";
if (get_var('DISK_GUIDED_EMPTY')){ if (get_var('DISK_GUIDED_EMPTY')){
autotest::loadtest get_var('CASEDIR')."/tests/disk_guided_empty.pm"; autotest::loadtest get_var('CASEDIR')."/tests/disk_guided_empty.pm";
} }
elsif (get_var('DISK_GUIDED_MULTI')){
autotest::loadtest get_var('CASEDIR')."/tests/disk_guided_multi.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,24 @@
{
"tags": [
"anaconda_install_destination_select_disk_1",
"ENV-DISTRI-fedora",
"ENV-INSTLANG-en_US",
"ENV-FLAVOR-server"
],
"area": [
{
"xpos": 67,
"ypos": 175,
"width": 69,
"height": 71,
"type": "match"
},
{
"xpos": 27,
"ypos": 276,
"width": 148,
"height": 24,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

View File

@ -0,0 +1,24 @@
{
"tags": [
"anaconda_install_destination_select_disk_2",
"ENV-DISTRI-fedora",
"ENV-INSTLANG-en_US",
"ENV-FLAVOR-server"
],
"area": [
{
"xpos": 228,
"ypos": 175,
"width": 110,
"height": 76,
"type": "match"
},
{
"xpos": 211,
"ypos": 277,
"width": 145,
"height": 26,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB

View File

@ -46,5 +46,14 @@
], ],
variables => "", variables => "",
}, },
{
name => "server_sata_multi",
prio => 2,
settings => [
{ key => "NUMDISKS", value => "2" },
{ key => "DISK_GUIDED_MULTI", value => "1" },
],
variables => "",
},
], ],
} }

View File

@ -0,0 +1,30 @@
use base "basetest";
use strict;
use testapi;
sub run {
# Anaconda hub
assert_screen "anaconda_main_hub", 300; #
# Select both disks
assert_and_click "anaconda_main_hub_install_destination";
assert_and_click "anaconda_install_destination_select_disk_1";
assert_and_click "anaconda_install_destination_select_disk_2";
assert_and_click "anaconda_spoke_done";
# 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: