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

add software RAID test suite

This commit is contained in:
Garret Raziel 2015-03-06 10:36:25 +01:00 committed by geekotest
parent 2038451b96
commit 3863d840b0
33 changed files with 416 additions and 1 deletions

View File

@ -59,6 +59,9 @@ else
elsif (get_var('DISK_GUIDED_MULTI_EMPTY_ALL')) {
autotest::loadtest get_var('CASEDIR')."/tests/disk_guided_multi_empty_all.pm";
}
elsif (get_var('DISK_SOFTWARE_RAID')) {
autotest::loadtest get_var('CASEDIR')."/tests/disk_part_software_raid.pm";
}
else {
# also DISK_GUIDED_FREE_SPACE
autotest::loadtest get_var('CASEDIR')."/tests/disk_guided_empty.pm";
@ -91,6 +94,9 @@ else
elsif (get_var('DISK_GUIDED_MULTI_EMPTY_ALL')) {
autotest::loadtest get_var('CASEDIR')."/tests/disk_guided_multi_empty_all_postinstall.pm";
}
elsif (get_var('DISK_SOFTWARE_RAID')) {
autotest::loadtest get_var('CASEDIR')."/tests/disk_part_software_raid_postinstall.pm";
}
}

View File

@ -0,0 +1,60 @@
{
"tags": [
"anaconda_main_hub",
"ENV-DISTRI-fedora",
"ENV-INSTLANG-en_US",
"ENV-FLAVOR-server"
],
"area": [
{
"xpos": 168,
"ypos": 7,
"type": "match",
"height": 57,
"width": 227
},
{
"xpos": 266,
"width": 101,
"height": 33,
"type": "match",
"ypos": 153
},
{
"width": 180,
"height": 33,
"type": "match",
"ypos": 155,
"xpos": 699
},
{
"width": 203,
"height": 38,
"type": "match",
"ypos": 346,
"xpos": 267
},
{
"xpos": 264,
"ypos": 475,
"type": "match",
"height": 50,
"width": 252
},
{
"height": 18,
"width": 36,
"ypos": 236,
"type": "match",
"xpos": 272
},
{
"type": "match",
"ypos": 240,
"width": 40,
"height": 13,
"xpos": 330
}
],
"properties": []
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 100 KiB

View File

@ -0,0 +1,18 @@
{
"properties": [],
"tags": [
"anaconda_manual_partitioning",
"ENV-DISTRI-fedora",
"ENV-INSTLANG-en_US",
"ENV-FLAVOR-server"
],
"area": [
{
"xpos": 295,
"ypos": 521,
"width": 162,
"height": 20,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

View File

@ -0,0 +1,18 @@
{
"properties": [],
"tags": [
"anaconda_part_accept_changes",
"ENV-DISTRI-fedora",
"ENV-INSTLANG-en_US",
"ENV-FLAVOR-server"
],
"area": [
{
"xpos": 760,
"ypos": 550,
"width": 122,
"height": 21,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB

View File

@ -0,0 +1,18 @@
{
"properties": [],
"area": [
{
"xpos": 545,
"ypos": 461,
"width": 118,
"height": 26,
"type": "match"
}
],
"tags": [
"anaconda_part_add_mountpoint",
"ENV-DISTRI-fedora",
"ENV-INSTLANG-en_US",
"ENV-FLAVOR-server"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

View File

@ -0,0 +1,18 @@
{
"area": [
{
"xpos": 351,
"ypos": 406,
"width": 304,
"height": 21,
"type": "match"
}
],
"tags": [
"anaconda_part_desired_capacity",
"ENV-DISTRI-fedora",
"ENV-INSTLANG-en_US",
"ENV-FLAVOR-server"
],
"properties": []
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

View File

@ -0,0 +1,18 @@
{
"properties": [],
"tags": [
"anaconda_part_device_type",
"ENV-DISTRI-fedora",
"ENV-INSTLANG-en_US",
"ENV-FLAVOR-server"
],
"area": [
{
"xpos": 376,
"ypos": 296,
"width": 144,
"height": 49,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

View File

@ -0,0 +1,18 @@
{
"tags": [
"anaconda_part_list_box_boot",
"ENV-DISTRI-fedora",
"ENV-INSTLANG-en_US",
"ENV-FLAVOR-server"
],
"area": [
{
"xpos": 471,
"ypos": 433,
"width": 63,
"height": 28,
"type": "match"
}
],
"properties": []
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

View File

@ -0,0 +1,18 @@
{
"properties": [],
"tags": [
"anaconda_part_list_box_button",
"ENV-DISTRI-fedora",
"ENV-INSTLANG-en_US",
"ENV-FLAVOR-server"
],
"area": [
{
"xpos": 640,
"ypos": 372,
"width": 27,
"height": 22,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

View File

@ -0,0 +1,18 @@
{
"properties": [],
"tags": [
"anaconda_part_list_box_root",
"ENV-DISTRI-fedora",
"ENV-INSTLANG-en_US",
"ENV-FLAVOR-server"
],
"area": [
{
"xpos": 472,
"ypos": 405,
"width": 66,
"height": 26,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

View File

@ -0,0 +1,18 @@
{
"properties": [],
"area": [
{
"xpos": 472,
"ypos": 498,
"width": 91,
"height": 24,
"type": "match"
}
],
"tags": [
"anaconda_part_list_box_swap",
"ENV-DISTRI-fedora",
"ENV-INSTLANG-en_US",
"ENV-FLAVOR-server"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

View File

@ -0,0 +1,18 @@
{
"tags": [
"anaconda_part_plus_button",
"ENV-DISTRI-fedora",
"ENV-INSTLANG-en_US",
"ENV-FLAVOR-server"
],
"area": [
{
"xpos": 32,
"ypos": 624,
"width": 35,
"height": 31,
"type": "match"
}
],
"properties": []
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

View File

@ -0,0 +1,18 @@
{
"properties": [],
"area": [
{
"xpos": 378,
"ypos": 351,
"width": 68,
"height": 23,
"type": "match"
}
],
"tags": [
"anaconda_part_raid_list",
"ENV-DISTRI-fedora",
"ENV-INSTLANG-en_US",
"ENV-FLAVOR-server"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

View File

@ -0,0 +1,18 @@
{
"properties": [],
"tags": [
"anaconda_part_update_settings",
"ENV-DISTRI-fedora",
"ENV-INSTLANG-en_US",
"ENV-FLAVOR-server"
],
"area": [
{
"xpos": 879,
"ypos": 571,
"width": 112,
"height": 23,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

View File

@ -0,0 +1,18 @@
{
"properties": [],
"area": [
{
"xpos": 0,
"ypos": 0,
"width": 182,
"height": 15,
"type": "match"
}
],
"tags": [
"console_raid_used",
"ENV-DISTRI-fedora",
"ENV-INSTLANG-en_US",
"ENV-FLAVOR-server"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

@ -116,6 +116,16 @@
},
test_suite => { name => "server_multi_empty" },
},
{
machine => { name => "64bit" },
product => {
arch => "x86_64",
distri => "fedora",
flavor => "server",
version => "rawhide",
},
test_suite => { name => "server_software_raid" },
},
],
Machines => [
{
@ -253,5 +263,15 @@
],
variables => "",
},
{
name => "server_software_raid",
prio => 13,
settings => [
{ key => "DISK_SOFTWARE_RAID", value => "1" },
{ key => "NUMDISKS", value => "2" },
{ key => "ROOT_PASSWORD", value => "weakpassword" },
],
variables => "",
},
],
}

View File

@ -6,9 +6,9 @@ sub run {
# Anaconda hub
assert_screen "anaconda_main_hub", 300; #
# Select the first disk
assert_and_click "anaconda_main_hub_install_destination";
# Select both disks for installation
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";

View File

@ -0,0 +1,73 @@
use base "anacondalog";
use strict;
use testapi;
sub run {
# Anaconda hub
assert_screen "anaconda_main_hub", 300; #
assert_and_click "anaconda_main_hub_install_destination";
# Select both disks for installation
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";
# Select manual partitioning
assert_and_click "anaconda_manual_partitioning";
assert_and_click "anaconda_spoke_done";
# Manual partitioning spoke should be displayed
# Add /boot partition
assert_and_click "anaconda_part_plus_button";
assert_and_click "anaconda_part_list_box_button";
assert_and_click "anaconda_part_list_box_boot";
assert_and_click "anaconda_part_desired_capacity";
type_string "200M";
assert_and_click "anaconda_part_add_mountpoint";
# Add swap partition
assert_and_click "anaconda_part_plus_button";
assert_and_click "anaconda_part_list_box_button";
assert_and_click "anaconda_part_list_box_swap";
assert_and_click "anaconda_part_desired_capacity";
type_string "2G";
assert_and_click "anaconda_part_add_mountpoint";
# Add root partition
assert_and_click "anaconda_part_plus_button";
assert_and_click "anaconda_part_list_box_button";
assert_and_click "anaconda_part_list_box_root";
assert_and_click "anaconda_part_add_mountpoint";
# Change type to RAID
assert_and_click "anaconda_part_device_type";
assert_and_click "anaconda_part_raid_list";
assert_and_click "anaconda_part_update_settings";
assert_and_click "anaconda_spoke_done";
assert_and_click "anaconda_part_accept_changes";
# 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,22 @@
use base "basetest";
use strict;
use testapi;
sub run {
assert_screen "root_logged_in";
type_string "reset; cat /proc/mdstat";
send_key "ret";
assert_screen "console_raid_used";
}
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: