mirror of
https://github.com/rocky-linux/os-autoinst-distri-rocky.git
synced 2024-11-22 05:01:25 +00:00
Disk guided encrypted
This commit is contained in:
parent
376ec0d81b
commit
fe36bf1c83
8
main.pm
8
main.pm
@ -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'))
|
||||||
|
18
needles/anaconda_install_destination_encrypt_data.json
Normal file
18
needles/anaconda_install_destination_encrypt_data.json
Normal 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"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
BIN
needles/anaconda_install_destination_encrypt_data.png
Normal file
BIN
needles/anaconda_install_destination_encrypt_data.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 51 KiB |
18
needles/anaconda_install_destination_save_passphrase.json
Normal file
18
needles/anaconda_install_destination_save_passphrase.json
Normal 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"
|
||||||
|
]
|
||||||
|
}
|
BIN
needles/anaconda_install_destination_save_passphrase.png
Normal file
BIN
needles/anaconda_install_destination_save_passphrase.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 64 KiB |
@ -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"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
BIN
needles/anaconda_main_hub_install_destination_already_done.png
Normal file
BIN
needles/anaconda_main_hub_install_destination_already_done.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 95 KiB |
18
needles/boot_enter_passphrase.json
Normal file
18
needles/boot_enter_passphrase.json
Normal 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"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
BIN
needles/boot_enter_passphrase.png
Normal file
BIN
needles/boot_enter_passphrase.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 699 B |
37
tests/disk_guided_encrypted.pm
Normal file
37
tests/disk_guided_encrypted.pm
Normal 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:
|
21
tests/disk_guided_encrypted_postinstall.pm
Normal file
21
tests/disk_guided_encrypted_postinstall.pm
Normal 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:
|
Loading…
Reference in New Issue
Block a user