1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-12-22 02:13:08 +00:00

add multiple disks test

This commit is contained in:
Garret Raziel 2015-03-05 13:57:47 +01:00 committed by geekotest
parent 41d859cc7d
commit 2038451b96
10 changed files with 164 additions and 22 deletions

View File

@ -56,7 +56,11 @@ else
elsif (get_var('DISK_GUIDED_DELETE_PARTIAL')) {
autotest::loadtest get_var('CASEDIR')."/tests/disk_guided_delete_partial.pm";
}
elsif (get_var('DISK_GUIDED_MULTI_EMPTY_ALL')) {
autotest::loadtest get_var('CASEDIR')."/tests/disk_guided_multi_empty_all.pm";
}
else {
# also DISK_GUIDED_FREE_SPACE
autotest::loadtest get_var('CASEDIR')."/tests/disk_guided_empty.pm";
}
@ -84,6 +88,9 @@ else
elsif (get_var('DISK_GUIDED_FREE_SPACE')) {
autotest::loadtest get_var('CASEDIR')."/tests/disk_guided_free_space_postinstall.pm";
}
elsif (get_var('DISK_GUIDED_MULTI_EMPTY_ALL')) {
autotest::loadtest get_var('CASEDIR')."/tests/disk_guided_multi_empty_all_postinstall.pm";
}
}

View File

@ -1,17 +1,25 @@
{
"properties": [],
"area": [
{
"xpos": 56,
"width": 134,
"ypos": 289,
"type": "match",
"height": 24,
"ypos": 289
"width": 17,
"xpos": 56
},
{
"ypos": 288,
"type": "match",
"height": 24,
"width": 87,
"xpos": 102
}
],
"tags": [
"anaconda_install_destination_select_disk_1",
"ENV-DISTRI-fedora",
"ENV-FLAVOR-server",
"ENV-INSTLANG-en_US",
"anaconda_install_destination_select_disk_1"
"ENV-FLAVOR-server"
]
}

View File

@ -1,24 +1,32 @@
{
"area": [
{
"type": "match",
"width": 73,
"height": 63,
"ypos": 178,
"xpos": 290
},
{
"type": "match",
"width": 137,
"height": 30,
"ypos": 275,
"xpos": 266
}
],
"tags": [
"anaconda_install_destination_select_disk_2",
"ENV-DISTRI-fedora",
"ENV-INSTLANG-en_US",
"ENV-FLAVOR-server"
]
],
"area": [
{
"xpos": 290,
"type": "match",
"ypos": 178,
"width": 73,
"height": 63
},
{
"ypos": 275,
"type": "match",
"height": 23,
"width": 20,
"xpos": 266
},
{
"type": "match",
"ypos": 278,
"width": 81,
"height": 22,
"xpos": 317
}
],
"properties": []
}

View File

@ -0,0 +1,18 @@
{
"tags": [
"anaconda_install_destination_two_disks",
"ENV-DISTRI-fedora",
"ENV-INSTLANG-en_US",
"ENV-FLAVOR-server"
],
"area": [
{
"height": 46,
"width": 260,
"ypos": 216,
"type": "match",
"xpos": 59
}
],
"properties": []
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

View File

@ -0,0 +1,25 @@
{
"area": [
{
"xpos": 191,
"ypos": 15,
"width": 64,
"height": 18,
"type": "match"
},
{
"xpos": 189,
"ypos": 193,
"width": 67,
"height": 13,
"type": "match"
}
],
"tags": [
"console_two_disks_mounted_lvm",
"ENV-DISTRI-fedora",
"ENV-INSTLANG-en_US",
"ENV-FLAVOR-server"
],
"properties": []
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

View File

@ -106,6 +106,16 @@
},
test_suite => { name => "server_simple_free_space" },
},
{
machine => { name => "64bit" },
product => {
arch => "x86_64",
distri => "fedora",
flavor => "server",
version => "rawhide",
},
test_suite => { name => "server_multi_empty" },
},
],
Machines => [
{
@ -233,5 +243,15 @@
],
variables => "",
},
{
name => "server_multi_empty",
prio => 12,
settings => [
{ key => "DISK_GUIDED_MULTI_EMPTY_ALL", value => "1" },
{ key => "NUMDISKS", value => "2" },
{ key => "ROOT_PASSWORD", value => "weakpassword" },
],
variables => "",
},
],
}

View File

@ -0,0 +1,32 @@
use base "anacondalog";
use strict;
use testapi;
sub run {
# Anaconda hub
assert_screen "anaconda_main_hub", 300; #
# Select the first disk
assert_and_click "anaconda_main_hub_install_destination";
assert_screen "anaconda_install_destination_two_disks";
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 { fatal => 1 };
}
1;
# vim: set sw=4 et:

View File

@ -0,0 +1,24 @@
use base "basetest";
use strict;
use testapi;
sub run {
assert_screen "root_logged_in";
# when two disks are selected in installation, LVM is used
type_string "reset; pvdisplay";
send_key "ret";
assert_screen "console_two_disks_mounted_lvm";
}
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 { fatal => 1 };
}
1;
# vim: set sw=4 et: