Skip to content

Commit

Permalink
Enable Agama installation for full encryption: focus on booting
Browse files Browse the repository at this point in the history
  • Loading branch information
manfredi committed Sep 30, 2024
1 parent 53efc6f commit c785076
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 3 deletions.
5 changes: 2 additions & 3 deletions schedule/yam/agama_full_disk_encryption.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ schedule:
- yam/agama/import_agama_profile
- yam/agama/patch_agama_tests
- yam/agama/agama
- installation/grub_test
- installation/boot_encrypt
- installation/first_boot
- yam/agama/enter_passphrase
- yam/agama/enter_passphrase_cr_swap
- console/validate_encrypt
22 changes: 22 additions & 0 deletions tests/yam/agama/enter_passphrase.pm
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
## Copyright 2024 SUSE LLC
# SPDX-License-Identifier: GPL-2.0-or-later

# Summary: Boot agama encryption.
# Maintainer: QE YaST and Migration (QE Yam) <qe-yam at suse de>

use base Yam::Agama::agama_base;
use strict;
use warnings;
use testapi;

sub run {
assert_screen("encrypted-disk-password-prompt", 200);
save_screenshot;
type_password();
save_screenshot;
send_key "ret";
save_screenshot;
assert_screen("grub2", 200);
}

1;
27 changes: 27 additions & 0 deletions tests/yam/agama/enter_passphrase_cr_swap.pm
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
## Copyright 2024 SUSE LLC
# SPDX-License-Identifier: GPL-2.0-or-later

# Summary: First boot agama encryption after installation.
# Maintainer: QE YaST and Migration (QE Yam) <qe-yam at suse de>

use base Yam::Agama::agama_base;
use strict;
use warnings;
use testapi;

sub run {
assert_screen("enter-passphrase-cr-swap", 200);
save_screenshot;
type_password();
save_screenshot;
send_key "ret";
save_screenshot;
assert_screen("text-login", 200);
enter_cmd("root");
# assert_screen "password-prompt";
type_password();
send_key('ret');
assert_screen "text-logged-in-root";
}

1;

0 comments on commit c785076

Please sign in to comment.