use TTY3 for login as root

This commit is contained in:
Trevor Cooper 2023-08-20 19:03:21 -07:00
parent d75b56be20
commit 072fc78d73
Signed by: tcooper
GPG Key ID: 52364D7BBCEB35B8

View File

@ -39,8 +39,13 @@ sub run {
} }
} }
# login # switch to TTY3 for both, graphical and console tests
$self->root_console(); $self->root_console(tty => 3);
if (get_var("ROOT_PASSWORD")) {
console_login(user => "root", password => get_var("ROOT_PASSWORD"));
}
# We need entropy. Install rng-tools and start it up. Fedora uses haveged # We need entropy. Install rng-tools and start it up. Fedora uses haveged
# but Rocky Linux does not have it unless EPEL is used. # but Rocky Linux does not have it unless EPEL is used.
assert_script_run "dnf --assumeyes install rng-tools", 300; assert_script_run "dnf --assumeyes install rng-tools", 300;
@ -75,7 +80,7 @@ sub run {
assert_script_run "ipa-getkeytab -s $ipa_hostname -p testservice/$ipa_hostname"; assert_script_run "ipa-getkeytab -s $ipa_hostname -p testservice/$ipa_hostname";
validate_script_output 'klist -k /tmp/testservice.keytab', sub { $_ =~ m/testservice\/$ipa_hostname/ }; validate_script_output 'klist -k /tmp/testservice.keytab', sub { $_ =~ m/testservice\/$ipa_hostname/ };
# This is commented for now. We need a while loop that watches for ipa-getcert list -r to become empty. # This is commented for now. We need a while loop that watches for ipa-getcert list -r to become empty.
#assert_script_run "ipa-getcert request -K testservice/$ipa_hostname -D $ipa_hostname -f /etc/pki/tls/certs/testservice.pki -k /etc/pki/tls/private/testservice.key"; #assert_script_run "ipa-getcert request -K testservice/$ipa_hostname -D $ipa_hostname -f /etc/pki/tls/certs/testservice.pki -k /etc/pki/tls/private/testservice.key";
#validate_script_output "ipa-getcert list -r | sed -n '/Request ID/,/auto-renew: yes/p'", sub { $_ =~ m// }; #validate_script_output "ipa-getcert list -r | sed -n '/Request ID/,/auto-renew: yes/p'", sub { $_ =~ m// };
############################################################################ ############################################################################