mirror of
https://github.com/rocky-linux/os-autoinst-distri-rocky.git
synced 2024-11-24 22:21:25 +00:00
Merge branch 'develop' into adopt_uefi
This commit is contained in:
commit
e16c91f9dc
@ -19,12 +19,16 @@ sub run {
|
|||||||
# autocloud used to use, via tunir and this tunir config:
|
# autocloud used to use, via tunir and this tunir config:
|
||||||
# https://infrastructure.fedoraproject.org/cgit/ansible.git/tree/roles/autocloud/backend/files/fedora.txt?id=6e7c1b90593df8371fd34ed9484bd4da119236d3
|
# https://infrastructure.fedoraproject.org/cgit/ansible.git/tree/roles/autocloud/backend/files/fedora.txt?id=6e7c1b90593df8371fd34ed9484bd4da119236d3
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
|
# tests require python3 which is not default installed in Rocky 8
|
||||||
|
if (get_version_major() < 9) {
|
||||||
|
assert_script_run("dnf install -y python3", timeout => 240);
|
||||||
|
}
|
||||||
# we need to use script_run as regular user
|
# we need to use script_run as regular user
|
||||||
assert_script_run "chmod ugo+w /dev/" . $serialdev;
|
assert_script_run "chmod ugo+w /dev/" . $serialdev;
|
||||||
# let's go to another tty and login as regular user
|
# let's go to another tty and login as regular user
|
||||||
send_key "alt-f2";
|
send_key "alt-f2";
|
||||||
console_login(user => "test", password => "weakpassword");
|
console_login(user => get_var("USER_LOGIN", "test"), password => get_var("USER_PASSWORD", "weakpassword"));
|
||||||
assert_script_run "curl -O https://fedorapeople.org/groups/qa/tunirtests.tar.gz";
|
assert_script_run "curl -O https://openqa.rockylinux.org/qa/tunirtests.tar.gz";
|
||||||
assert_script_run "tar xvf tunirtests.tar.gz";
|
assert_script_run "tar xvf tunirtests.tar.gz";
|
||||||
assert_script_run "sudo python3 -m unittest tunirtests.atomictests.TestAtomic01Status -v";
|
assert_script_run "sudo python3 -m unittest tunirtests.atomictests.TestAtomic01Status -v";
|
||||||
_soft_fail_run "tunirtests.nongatingtests.TunirNonGatingtests";
|
_soft_fail_run "tunirtests.nongatingtests.TunirNonGatingtests";
|
||||||
@ -45,24 +49,24 @@ sub run {
|
|||||||
assert_script_run "sudo python3 -m unittest tunirtests.cloudservice.TestServiceDisable -v";
|
assert_script_run "sudo python3 -m unittest tunirtests.cloudservice.TestServiceDisable -v";
|
||||||
type_string "sudo reboot\n";
|
type_string "sudo reboot\n";
|
||||||
boot_to_login_screen(timeout => 180);
|
boot_to_login_screen(timeout => 180);
|
||||||
console_login(user => "root", password => "weakpassword");
|
console_login(user => "root", password => get_var("USER_PASSWORD", "weakpassword"));
|
||||||
# we need to use script_run as regular user again
|
# we need to use script_run as regular user again
|
||||||
assert_script_run "sudo chmod ugo+w /dev/" . $serialdev;
|
assert_script_run "sudo chmod ugo+w /dev/" . $serialdev;
|
||||||
# let's go to another tty and login as regular user again
|
# let's go to another tty and login as regular user again
|
||||||
send_key "alt-f2";
|
send_key "alt-f2";
|
||||||
console_login(user => "test", password => "weakpassword");
|
console_login(user => get_var("USER_LOGIN", "test"), password => get_var("USER_PASSWORD", "weakpassword"));
|
||||||
_soft_fail_run "tunirtests.testreboot.TestReboot";
|
_soft_fail_run "tunirtests.testreboot.TestReboot";
|
||||||
assert_script_run "sudo python3 -m unittest tunirtests.cloudservice.TestServiceManipulation -v";
|
assert_script_run "sudo python3 -m unittest tunirtests.cloudservice.TestServiceManipulation -v";
|
||||||
# this test only works properly as a regular user
|
# this test only works properly as a regular user
|
||||||
_soft_fail_run "tunirtests.cloudtests.TestJournalWrittenAfterReboot", 0;
|
_soft_fail_run "tunirtests.cloudtests.TestJournalWrittenAfterReboot", 0;
|
||||||
type_string "sudo reboot\n";
|
type_string "sudo reboot\n";
|
||||||
boot_to_login_screen(timeout => 180);
|
boot_to_login_screen(timeout => 180);
|
||||||
console_login(user => "root", password => "weakpassword");
|
console_login(user => "root", get_var("USER_PASSWORD", "weakpassword"));
|
||||||
# we need to use script_run as regular user again
|
# we need to use script_run as regular user again
|
||||||
assert_script_run "sudo chmod ugo+w /dev/" . $serialdev;
|
assert_script_run "sudo chmod ugo+w /dev/" . $serialdev;
|
||||||
# let's go to another tty and login as regular user again
|
# let's go to another tty and login as regular user again
|
||||||
send_key "alt-f2";
|
send_key "alt-f2";
|
||||||
console_login(user => "test", password => "weakpassword");
|
console_login(user => get_var("USER_LOGIN", "test"), password => get_var("USER_PASSWORD", "weakpassword"));
|
||||||
assert_script_run "sudo python3 -m unittest tunirtests.cloudservice.TestServiceAfter -v";
|
assert_script_run "sudo python3 -m unittest tunirtests.cloudservice.TestServiceAfter -v";
|
||||||
assert_script_run "sudo python3 -m unittest tunirtests.atomictests.TestDockerInstalled -v";
|
assert_script_run "sudo python3 -m unittest tunirtests.atomictests.TestDockerInstalled -v";
|
||||||
assert_script_run "sudo python3 -m unittest tunirtests.atomictests.TestDockerStorageSetup -v";
|
assert_script_run "sudo python3 -m unittest tunirtests.atomictests.TestDockerStorageSetup -v";
|
||||||
|
Loading…
Reference in New Issue
Block a user