2015-02-19 14:40:33 +00:00
|
|
|
use base "anacondalog";
|
2015-01-22 12:38:16 +00:00
|
|
|
use strict;
|
|
|
|
use testapi;
|
|
|
|
|
|
|
|
sub run {
|
|
|
|
# Anaconda hub
|
2015-01-26 14:58:07 +00:00
|
|
|
assert_screen "anaconda_main_hub", 300; #
|
2015-01-22 12:38:16 +00:00
|
|
|
|
|
|
|
# Begin installation
|
|
|
|
assert_and_click "anaconda_main_hub_begin_installation";
|
2015-01-26 14:58:07 +00:00
|
|
|
|
2015-01-22 12:38:16 +00:00
|
|
|
# Set root password
|
2015-02-13 15:36:35 +00:00
|
|
|
my $root_password = get_var("ROOT_PASSWORD") || "weakpassword";
|
2015-01-22 12:38:16 +00:00
|
|
|
assert_and_click "anaconda_install_root_password";
|
2015-04-03 08:27:31 +00:00
|
|
|
assert_screen "anaconda_install_root_password_screen";
|
2015-02-13 15:36:35 +00:00
|
|
|
type_string $root_password;
|
2015-01-22 12:38:16 +00:00
|
|
|
send_key "tab";
|
2015-02-13 15:36:35 +00:00
|
|
|
type_string $root_password;
|
2015-01-22 12:38:16 +00:00
|
|
|
assert_and_click "anaconda_spoke_done";
|
|
|
|
# weak password - click "done" once again"
|
2015-02-03 17:11:29 +00:00
|
|
|
#assert_and_click "anaconda_spoke_done";
|
2015-01-22 12:38:16 +00:00
|
|
|
|
|
|
|
# Set user details
|
2015-03-18 21:28:03 +00:00
|
|
|
sleep 1;
|
2015-02-13 15:36:35 +00:00
|
|
|
my $user_login = get_var("USER_LOGIN") || "test";
|
|
|
|
my $user_password = get_var("USER_PASSWORD") || "weakpassword";
|
2015-01-22 12:38:16 +00:00
|
|
|
assert_and_click "anaconda_install_user_creation";
|
2015-04-03 08:27:31 +00:00
|
|
|
assert_screen "anaconda_install_user_creation_screen";
|
2015-02-13 15:36:35 +00:00
|
|
|
type_string $user_login;
|
2015-04-03 08:27:31 +00:00
|
|
|
assert_and_click "anaconda_user_creation_password_input";
|
2015-02-13 15:36:35 +00:00
|
|
|
type_string $user_password;
|
2015-01-22 12:38:16 +00:00
|
|
|
send_key "tab";
|
2015-02-13 15:36:35 +00:00
|
|
|
type_string $user_password;
|
2015-01-22 12:38:16 +00:00
|
|
|
assert_and_click "anaconda_install_user_creation_make_admin";
|
|
|
|
assert_and_click "anaconda_spoke_done";
|
|
|
|
# weak password - click "done" once again"
|
2015-02-03 17:11:29 +00:00
|
|
|
#assert_and_click "anaconda_spoke_done";
|
2015-01-22 12:38:16 +00:00
|
|
|
|
|
|
|
# Wait for install to end
|
2015-03-18 21:28:03 +00:00
|
|
|
assert_and_click "anaconda_install_done", '', 1800;
|
|
|
|
if (get_var('LIVE')) {
|
|
|
|
x11_start_program("reboot");
|
|
|
|
}
|
2015-01-22 12:38:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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'
|
2015-01-28 12:42:34 +00:00
|
|
|
return { fatal => 1 };
|
2015-01-22 12:38:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
1;
|
|
|
|
|
|
|
|
# vim: set sw=4 et:
|