mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-11-23 06:23:09 +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:
parent
5264388dc5
commit
780a9afbba
3
main.pm
3
main.pm
@ -25,6 +25,9 @@ autotest::loadtest get_var('CASEDIR')."/tests/_boot_to_anaconda.pm";
|
||||
if (get_var('DISK_GUIDED_EMPTY')){
|
||||
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
|
||||
autotest::loadtest get_var('CASEDIR')."/tests/_do_install_and_reboot.pm";
|
||||
|
24
needles/anaconda_install_destination_select_disk_1.json
Normal file
24
needles/anaconda_install_destination_select_disk_1.json
Normal 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"
|
||||
}
|
||||
]
|
||||
}
|
BIN
needles/anaconda_install_destination_select_disk_1.png
Normal file
BIN
needles/anaconda_install_destination_select_disk_1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 76 KiB |
24
needles/anaconda_install_destination_select_disk_2.json
Normal file
24
needles/anaconda_install_destination_select_disk_2.json
Normal 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"
|
||||
}
|
||||
]
|
||||
}
|
BIN
needles/anaconda_install_destination_select_disk_2.png
Normal file
BIN
needles/anaconda_install_destination_select_disk_2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 86 KiB |
@ -46,5 +46,14 @@
|
||||
],
|
||||
variables => "",
|
||||
},
|
||||
{
|
||||
name => "server_sata_multi",
|
||||
prio => 2,
|
||||
settings => [
|
||||
{ key => "NUMDISKS", value => "2" },
|
||||
{ key => "DISK_GUIDED_MULTI", value => "1" },
|
||||
],
|
||||
variables => "",
|
||||
},
|
||||
],
|
||||
}
|
||||
|
30
tests/disk_guided_multi.pm
Normal file
30
tests/disk_guided_multi.pm
Normal 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:
|
Loading…
Reference in New Issue
Block a user