Inst-repo HTTP variation

This commit is contained in:
Josef Skladanka 2015-02-04 14:45:37 +01:00
parent 475fcc0d19
commit 376ec0d81b
7 changed files with 99 additions and 3 deletions

View File

@ -31,10 +31,14 @@ else
unless (get_var("KICKSTART")) unless (get_var("KICKSTART"))
{ {
## Select installation source ## Installation source
if (get_var('MIRRORLIST_GRAPHICAL') || get_var("REPOSITORY_GRAPHICAL")){ if (get_var('MIRRORLIST_GRAPHICAL') || get_var("REPOSITORY_GRAPHICAL")){
autotest::loadtest get_var('CASEDIR')."/tests/install_source_graphical.pm"; autotest::loadtest get_var('CASEDIR')."/tests/install_source_graphical.pm";
} }
if (get_var("REPOSITORY_VARIATION")){
autotest::loadtest get_var('CASEDIR')."/tests/install_source_variation.pm";
}
## Select minimal flavor ## Select minimal flavor
if (get_var("FLAVOR") eq "server") { if (get_var("FLAVOR") eq "server") {

View File

@ -0,0 +1,18 @@
{
"area": [
{
"xpos": 229,
"ypos": 17,
"width": 327,
"height": 15,
"type": "match"
}
],
"tags": [
"anaconda_install_source_check_repo_added",
"ENV-DISTRI-fedora",
"ENV-INSTLANG-en_US",
"ENV-OFW-1",
"ENV-FLAVOR-server"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

@ -104,5 +104,13 @@
], ],
variables => "", variables => "",
}, },
{
name => "server_repository_http_variation",
prio => 8,
settings => [
{ key => "REPOSITORY_VARIATION", value => "1" },
],
variables => "",
},
], ],
} }

View File

@ -16,6 +16,25 @@ sub run {
if( get_var("GRUB")){ if( get_var("GRUB")){
send_key "tab"; send_key "tab";
type_string " ".get_var("GRUB"); type_string " ".get_var("GRUB");
}
if (get_var("REPOSITORY_VARIATION")){
unless (get_var("GRUB")){
send_key "tab";
}
my $fedora_version = "";
my $repourl = "";
if (get_var("VERSION") eq "rawhide"){
$fedora_version = "rawhide";
}
else {
$fedora_version = (split /_/, get_var("BUILD"))[0];
}
$repourl = "http://download.fedoraproject.org/pub/fedora/linux/development/".$fedora_version."/".get_var("ARCH")."/os";
type_string " inst.repo=".$repourl;
} }
send_key "ret"; send_key "ret";

View File

@ -53,9 +53,9 @@ sub run {
assert_screen "anaconda_main_hub", 300; assert_screen "anaconda_main_hub", 300;
# check that the repo was used # check that the repo was used
send_key "ctrl-alt-f3"; send_key "ctrl-alt-f2";
wait_idle 10; wait_idle 10;
type_string "grep \"".$repourl."\" /tmp/packaging.log | grep \"added repo\""; type_string "grep \"".$repourl."\" /tmp/packaging.log"; # | grep \"added repo\"";
send_key "ret"; send_key "ret";
assert_screen "anaconda_install_source_check_repo_added"; assert_screen "anaconda_install_source_check_repo_added";
send_key "ctrl-alt-f6"; send_key "ctrl-alt-f6";

View File

@ -0,0 +1,47 @@
use base "basetest";
use strict;
use testapi;
sub run {
# !!! GRUB parameter is set in _boot_to_anaconda.pm !!!
# Anaconda hub
assert_screen "anaconda_main_hub";
# FIXME: this code is scattered in at least three places (here, _boot_to_anaconda, _install_source_graphical. Deduplicate
my $fedora_version = "";
my $repourl = "";
if (get_var("VERSION") eq "rawhide"){
$fedora_version = "rawhide";
}
else {
$fedora_version = (split /_/, get_var("BUILD"))[0];
}
$repourl = "download.fedoraproject.org/pub/fedora/linux/development/".$fedora_version."/".get_var("ARCH")."/os";
# check that the repo was used
send_key "ctrl-alt-f2";
wait_idle 10;
type_string "grep \"".$repourl."\" /tmp/packaging.log"; #| grep \"added repo\"";
send_key "ret";
assert_screen "anaconda_install_source_check_repo_added";
send_key "ctrl-alt-f6";
# Anaconda hub
assert_screen "anaconda_main_hub", 30; #
}
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: