mirror of
https://github.com/rocky-linux/os-autoinst-distri-rocky.git
synced 2024-11-22 05:01:25 +00:00
Added 'server_simple' testsuite
This commit is contained in:
parent
f17b37c292
commit
5264388dc5
15
main.pm
15
main.pm
@ -18,7 +18,20 @@ use strict;
|
|||||||
use testapi;
|
use testapi;
|
||||||
use autotest;
|
use autotest;
|
||||||
|
|
||||||
autotest::loadtest get_var('CASEDIR')."/tests/install_simple.pm";
|
# Boot to anaconda Hub in English
|
||||||
|
autotest::loadtest get_var('CASEDIR')."/tests/_boot_to_anaconda.pm";
|
||||||
|
|
||||||
|
## Disk partitioning
|
||||||
|
if (get_var('DISK_GUIDED_EMPTY')){
|
||||||
|
autotest::loadtest get_var('CASEDIR')."/tests/disk_guided_empty.pm";
|
||||||
|
}
|
||||||
|
|
||||||
|
# Start installation, set user & root passwords, reboot
|
||||||
|
autotest::loadtest get_var('CASEDIR')."/tests/_do_install_and_reboot.pm";
|
||||||
|
|
||||||
|
|
||||||
|
# Wait for the login screen
|
||||||
|
autotest::loadtest get_var('CASEDIR')."/tests/_wait_for_login_screen.pm";
|
||||||
|
|
||||||
1;
|
1;
|
||||||
|
|
||||||
|
@ -44,7 +44,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"tags": [
|
"tags": [
|
||||||
"anaconda_main_hub_server",
|
"anaconda_main_hub",
|
||||||
"ENV-DESKTOP-default",
|
"ENV-DESKTOP-default",
|
||||||
"ENV-DISTRI-fedora",
|
"ENV-DISTRI-fedora",
|
||||||
"ENV-INSTLANG-en_US"
|
"ENV-INSTLANG-en_US"
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"tags": [
|
"tags": [
|
||||||
"bootloader_server",
|
"bootloader",
|
||||||
"ENV-DESKTOP-default",
|
"ENV-DESKTOP-default",
|
||||||
"ENV-DISTRI-fedora",
|
"ENV-DISTRI-fedora",
|
||||||
"ENV-INSTLANG-en_US"
|
"ENV-INSTLANG-en_US"
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"ENV-DESKTOP-default",
|
"ENV-DESKTOP-default",
|
||||||
"ENV-DISTRI-fedora",
|
"ENV-DISTRI-fedora",
|
||||||
"ENV-INSTLANG-en_US",
|
"ENV-INSTLANG-en_US",
|
||||||
"text_console_login"
|
"clean_install_login"
|
||||||
],
|
],
|
||||||
"area": [
|
"area": [
|
||||||
{
|
{
|
||||||
@ -14,4 +14,4 @@
|
|||||||
"type": "match"
|
"type": "match"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
85
templates
85
templates
@ -14,16 +14,10 @@
|
|||||||
flavor => "server",
|
flavor => "server",
|
||||||
version => "rawhide",
|
version => "rawhide",
|
||||||
},
|
},
|
||||||
test_suite => { name => "Server Simple" },
|
test_suite => { name => "server_simple" },
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
Machines => [
|
Machines => [
|
||||||
{
|
|
||||||
backend => "qemu",
|
|
||||||
name => "32bit",
|
|
||||||
settings => [{ key => "QEMUCPU", value => "kvm32" }],
|
|
||||||
variables => "",
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
backend => "qemu",
|
backend => "qemu",
|
||||||
name => "64bit",
|
name => "64bit",
|
||||||
@ -32,26 +26,6 @@
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
Products => [
|
Products => [
|
||||||
{
|
|
||||||
arch => "x86_64",
|
|
||||||
distri => "fedora",
|
|
||||||
flavor => "workstation",
|
|
||||||
name => "",
|
|
||||||
settings => [
|
|
||||||
],
|
|
||||||
variables => "",
|
|
||||||
version => "rawhide",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
arch => "i686",
|
|
||||||
distri => "fedora",
|
|
||||||
flavor => "workstation",
|
|
||||||
name => "",
|
|
||||||
settings => [
|
|
||||||
],
|
|
||||||
variables => "",
|
|
||||||
version => "rawhide",
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
arch => "x86_64",
|
arch => "x86_64",
|
||||||
distri => "fedora",
|
distri => "fedora",
|
||||||
@ -62,64 +36,13 @@
|
|||||||
variables => "",
|
variables => "",
|
||||||
version => "rawhide",
|
version => "rawhide",
|
||||||
},
|
},
|
||||||
{
|
|
||||||
arch => "i686",
|
|
||||||
distri => "fedora",
|
|
||||||
flavor => "server",
|
|
||||||
name => "",
|
|
||||||
settings => [
|
|
||||||
],
|
|
||||||
variables => "",
|
|
||||||
version => "rawhide",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
arch => "x86_64",
|
|
||||||
distri => "fedora",
|
|
||||||
flavor => "workstation",
|
|
||||||
name => "",
|
|
||||||
settings => [
|
|
||||||
],
|
|
||||||
variables => "",
|
|
||||||
version => "branched",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
arch => "i686",
|
|
||||||
distri => "fedora",
|
|
||||||
flavor => "workstation",
|
|
||||||
name => "",
|
|
||||||
settings => [
|
|
||||||
],
|
|
||||||
variables => "",
|
|
||||||
version => "branched",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
arch => "x86_64",
|
|
||||||
distri => "fedora",
|
|
||||||
flavor => "server",
|
|
||||||
name => "",
|
|
||||||
settings => [
|
|
||||||
],
|
|
||||||
variables => "",
|
|
||||||
version => "branched",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
arch => "i686",
|
|
||||||
distri => "fedora",
|
|
||||||
flavor => "server",
|
|
||||||
name => "",
|
|
||||||
settings => [
|
|
||||||
],
|
|
||||||
variables => "",
|
|
||||||
version => "branched",
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
TestSuites => [
|
TestSuites => [
|
||||||
{
|
{
|
||||||
name => "Server Simple",
|
name => "server_simple",
|
||||||
prio => 50,
|
prio => 1,
|
||||||
settings => [
|
settings => [
|
||||||
{ key => "HDDMODEL", value => "virtio-blk" },
|
{ key => "DISK_GUIDED_EMPTY", value => "1" },
|
||||||
{ key => "PRODUCTNAME", value => "server" },
|
|
||||||
],
|
],
|
||||||
variables => "",
|
variables => "",
|
||||||
},
|
},
|
||||||
|
40
tests/_boot_to_anaconda.pm
Normal file
40
tests/_boot_to_anaconda.pm
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
use base "basetest";
|
||||||
|
use strict;
|
||||||
|
use testapi;
|
||||||
|
|
||||||
|
sub run {
|
||||||
|
# Wait for bootloader to appear
|
||||||
|
|
||||||
|
assert_screen "bootloader", 30;
|
||||||
|
|
||||||
|
if ( get_var("FLAVOR") eq "server")
|
||||||
|
{
|
||||||
|
# Skip the media check on DVD
|
||||||
|
send_key "up";
|
||||||
|
}
|
||||||
|
|
||||||
|
send_key "ret";
|
||||||
|
|
||||||
|
# Select install language
|
||||||
|
assert_screen "anaconda_select_install_lang", 300;
|
||||||
|
type_string "english";
|
||||||
|
assert_and_click "anaconda_select_install_lang_english_filtered";
|
||||||
|
assert_screen "anaconda_select_install_lang_english_selected", 3;
|
||||||
|
assert_and_click "anaconda_select_install_lang_continue";
|
||||||
|
|
||||||
|
# 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 { milestone => 1 };
|
||||||
|
}
|
||||||
|
|
||||||
|
1;
|
||||||
|
|
||||||
|
# vim: set sw=4 et:
|
@ -3,30 +3,12 @@ use strict;
|
|||||||
use testapi;
|
use testapi;
|
||||||
|
|
||||||
sub run {
|
sub run {
|
||||||
# Wait for bootloader to appear
|
|
||||||
|
|
||||||
assert_screen "bootloader_".get_var("FLAVOR"), 30;
|
|
||||||
|
|
||||||
# Skip the media check
|
|
||||||
send_key "up";
|
|
||||||
send_key "ret";
|
|
||||||
# Select install language
|
|
||||||
assert_screen "anaconda_select_install_lang", 300;
|
|
||||||
type_string "english";
|
|
||||||
assert_and_click "anaconda_select_install_lang_english_filtered";
|
|
||||||
assert_screen "anaconda_select_install_lang_english_selected", 3;
|
|
||||||
assert_and_click "anaconda_select_install_lang_continue";
|
|
||||||
|
|
||||||
# Anaconda hub
|
# Anaconda hub
|
||||||
assert_screen "anaconda_main_hub_".get_var("FLAVOR"), 300; #
|
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";
|
|
||||||
|
|
||||||
# Begin installation
|
# Begin installation
|
||||||
assert_and_click "anaconda_main_hub_begin_installation";
|
assert_and_click "anaconda_main_hub_begin_installation";
|
||||||
|
|
||||||
# Set root password
|
# Set root password
|
||||||
assert_and_click "anaconda_install_root_password";
|
assert_and_click "anaconda_install_root_password";
|
||||||
type_string "fedora";
|
type_string "fedora";
|
||||||
@ -54,10 +36,6 @@ sub run {
|
|||||||
# Wait for install to end
|
# Wait for install to end
|
||||||
assert_screen "anaconda_install_done", 1800;
|
assert_screen "anaconda_install_done", 1800;
|
||||||
assert_and_click "anaconda_install_finish";
|
assert_and_click "anaconda_install_finish";
|
||||||
|
|
||||||
# Reboot and wait for the text login
|
|
||||||
assert_screen "text_console_login", 300;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sub test_flags {
|
sub test_flags {
|
||||||
@ -65,7 +43,7 @@ sub test_flags {
|
|||||||
# 'fatal' - whole test suite is in danger if this fails
|
# 'fatal' - whole test suite is in danger if this fails
|
||||||
# 'milestone' - after this test succeeds, update 'lastgood'
|
# 'milestone' - after this test succeeds, update 'lastgood'
|
||||||
# 'important' - if this fails, set the overall state to 'fail'
|
# 'important' - if this fails, set the overall state to 'fail'
|
||||||
return { important => 1 };
|
return { milestone => 1 };
|
||||||
}
|
}
|
||||||
|
|
||||||
1;
|
1;
|
22
tests/_wait_for_login_screen.pm
Normal file
22
tests/_wait_for_login_screen.pm
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
use base "basetest";
|
||||||
|
use strict;
|
||||||
|
use testapi;
|
||||||
|
|
||||||
|
sub run {
|
||||||
|
|
||||||
|
# Reboot and wait for the text login
|
||||||
|
assert_screen "clean_install_login", 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 { milestone => 1 };
|
||||||
|
}
|
||||||
|
|
||||||
|
1;
|
||||||
|
|
||||||
|
# vim: set sw=4 et:
|
28
tests/disk_guided_empty.pm
Normal file
28
tests/disk_guided_empty.pm
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
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";
|
||||||
|
|
||||||
|
# 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