Disk guided encrypted

This commit is contained in:
Josef Skladanka 2015-02-04 17:16:21 +01:00
parent 376ec0d81b
commit fe36bf1c83
11 changed files with 145 additions and 0 deletions

View File

@ -57,11 +57,19 @@ else
autotest::loadtest get_var('CASEDIR')."/tests/disk_guided_empty.pm"; autotest::loadtest get_var('CASEDIR')."/tests/disk_guided_empty.pm";
} }
if (get_var("ENCRYPT_PASSWORD")){
autotest::loadtest get_var('CASEDIR')."/tests/disk_guided_encrypted.pm";
}
# Start installation, set user & root passwords, reboot # Start installation, set user & root passwords, reboot
autotest::loadtest get_var('CASEDIR')."/tests/_do_install_and_reboot.pm"; autotest::loadtest get_var('CASEDIR')."/tests/_do_install_and_reboot.pm";
} }
# Wait for the login screen # Wait for the login screen
if (get_var("ENCRYPT_PASSWORD")){
autotest::loadtest get_var('CASEDIR')."/tests/disk_guided_encrypted_postinstall.pm";
}
autotest::loadtest get_var('CASEDIR')."/tests/_wait_for_login_screen.pm"; autotest::loadtest get_var('CASEDIR')."/tests/_wait_for_login_screen.pm";
if (get_var('DISK_GUIDED_MULTI')) if (get_var('DISK_GUIDED_MULTI'))

View File

@ -0,0 +1,18 @@
{
"tags": [
"anaconda_install_destination_encrypt_data",
"ENV-DISTRI-fedora",
"ENV-INSTLANG-en_US",
"ENV-OFW-1",
"ENV-FLAVOR-server"
],
"area": [
{
"xpos": 20,
"ypos": 603,
"width": 121,
"height": 21,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

View File

@ -0,0 +1,18 @@
{
"area": [
{
"xpos": 663,
"ypos": 515,
"width": 147,
"height": 42,
"type": "match"
}
],
"tags": [
"anaconda_install_destination_save_passphrase",
"ENV-DISTRI-fedora",
"ENV-INSTLANG-en_US",
"ENV-OFW-1",
"ENV-FLAVOR-server"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

View File

@ -0,0 +1,25 @@
{
"tags": [
"anaconda_main_hub_install_destination",
"ENV-DISTRI-fedora",
"ENV-INSTLANG-en_US",
"ENV-OFW-1",
"ENV-FLAVOR-server"
],
"area": [
{
"xpos": 174,
"ypos": 458,
"width": 87,
"height": 79,
"type": "match"
},
{
"xpos": 267,
"ypos": 472,
"width": 247,
"height": 30,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 95 KiB

View File

@ -0,0 +1,18 @@
{
"tags": [
"boot_enter_passphrase",
"ENV-DISTRI-fedora",
"ENV-INSTLANG-en_US",
"ENV-OFW-1",
"ENV-FLAVOR-server"
],
"area": [
{
"xpos": 0,
"ypos": 361,
"width": 188,
"height": 31,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 699 B

View File

@ -0,0 +1,37 @@
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_install_destination_encrypt_data";
assert_and_click "anaconda_spoke_done";
wait_idle 5;
type_string get_var("ENCRYPT_PASSWORD");
send_key "tab";
type_string get_var("ENCRYPT_PASSWORD");
assert_and_click "anaconda_install_destination_save_passphrase";
# 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,21 @@
use base "basetest";
use strict;
use testapi;
sub run {
assert_screen "boot_enter_passphrase", 300; #
type_string get_var("ENCRYPT_PASSWORD");
send_key "ret";
}
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: