mirror of
https://github.com/rocky-linux/os-autoinst-distri-rocky.git
synced 2024-11-22 05:01:25 +00:00
Add initial CoreOS product and test templates
Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
parent
170ef0733a
commit
478b7eff9e
@ -466,9 +466,10 @@ sub setup_workaround_repo {
|
|||||||
}
|
}
|
||||||
|
|
||||||
sub _repo_setup_compose {
|
sub _repo_setup_compose {
|
||||||
# doesn't work for IoT, anything that hits this in an IoT path
|
# doesn't work for IoT or CoreOS, anything that hits this on those
|
||||||
# must work with default mirror config...
|
# paths must work with default mirror config...
|
||||||
return if (get_var("SUBVARIANT") eq "IoT");
|
my $subvariant = get_var("SUBVARIANT");
|
||||||
|
return if ($subvariant eq "IoT" || $subvariant eq "CoreOS");
|
||||||
# Appropriate repo setup steps for testing a compose
|
# Appropriate repo setup steps for testing a compose
|
||||||
# disable updates-testing and updates and use the compose location
|
# disable updates-testing and updates and use the compose location
|
||||||
# as the target for fedora and rawhide rather than mirrorlist, so
|
# as the target for fedora and rawhide rather than mirrorlist, so
|
||||||
|
5
main.pm
5
main.pm
@ -134,6 +134,11 @@ sub load_upgrade_tests() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
sub load_install_tests() {
|
sub load_install_tests() {
|
||||||
|
# CoreOS is special, so we handle that here
|
||||||
|
if (get_var("SUBVARIANT") eq "CoreOS") {
|
||||||
|
autotest::loadtest "tests/_coreos_install.pm";
|
||||||
|
return;
|
||||||
|
}
|
||||||
# normal installation test consists of several phases, from which some of them are
|
# normal installation test consists of several phases, from which some of them are
|
||||||
# loaded automatically and others are loaded based on what env variables are set
|
# loaded automatically and others are loaded based on what env variables are set
|
||||||
|
|
||||||
|
@ -115,6 +115,17 @@
|
|||||||
},
|
},
|
||||||
"version": "*"
|
"version": "*"
|
||||||
},
|
},
|
||||||
|
"fedora-CoreOS-colive-iso-x86_64-*": {
|
||||||
|
"arch": "x86_64",
|
||||||
|
"distri": "fedora",
|
||||||
|
"flavor": "CoreOS-colive-iso",
|
||||||
|
"settings": {
|
||||||
|
"CANNED": "1",
|
||||||
|
"TEST_TARGET": "ISO",
|
||||||
|
"USER_LOGIN": "false"
|
||||||
|
},
|
||||||
|
"version": "*"
|
||||||
|
},
|
||||||
"fedora-Everything-boot-iso-ppc64le-*": {
|
"fedora-Everything-boot-iso-ppc64le-*": {
|
||||||
"arch": "ppc64le",
|
"arch": "ppc64le",
|
||||||
"distri": "fedora",
|
"distri": "fedora",
|
||||||
@ -323,6 +334,10 @@
|
|||||||
"machine": "64bit",
|
"machine": "64bit",
|
||||||
"product": "fedora-Cloud_Base-qcow2-qcow2-x86_64-*"
|
"product": "fedora-Cloud_Base-qcow2-qcow2-x86_64-*"
|
||||||
},
|
},
|
||||||
|
"fedora-CoreOS-colive-iso-x86_64-*-64bit": {
|
||||||
|
"machine": "64bit",
|
||||||
|
"product": "fedora-CoreOS-colive-iso-x86_64-*"
|
||||||
|
},
|
||||||
"fedora-Everything-boot-iso-ppc64le-*-ppc64le": {
|
"fedora-Everything-boot-iso-ppc64le-*-ppc64le": {
|
||||||
"machine": "ppc64le",
|
"machine": "ppc64le",
|
||||||
"product": "fedora-Everything-boot-iso-ppc64le-*"
|
"product": "fedora-Everything-boot-iso-ppc64le-*"
|
||||||
@ -448,6 +463,7 @@
|
|||||||
},
|
},
|
||||||
"base_reboot_unmount": {
|
"base_reboot_unmount": {
|
||||||
"profiles": {
|
"profiles": {
|
||||||
|
"fedora-CoreOS-colive-iso-x86_64-*-64bit": 20,
|
||||||
"fedora-IoT-dvd_ostree-iso-aarch64-*-aarch64": 20,
|
"fedora-IoT-dvd_ostree-iso-aarch64-*-aarch64": 20,
|
||||||
"fedora-IoT-dvd_ostree-iso-x86_64-*-64bit": 20,
|
"fedora-IoT-dvd_ostree-iso-x86_64-*-64bit": 20,
|
||||||
"fedora-KDE-live-iso-x86_64-*-64bit": 22,
|
"fedora-KDE-live-iso-x86_64-*-64bit": 22,
|
||||||
@ -480,6 +496,7 @@
|
|||||||
},
|
},
|
||||||
"base_system_logging": {
|
"base_system_logging": {
|
||||||
"profiles": {
|
"profiles": {
|
||||||
|
"fedora-CoreOS-colive-iso-x86_64-*-64bit": 20,
|
||||||
"fedora-IoT-dvd_ostree-iso-aarch64-*-aarch64": 20,
|
"fedora-IoT-dvd_ostree-iso-aarch64-*-aarch64": 20,
|
||||||
"fedora-IoT-dvd_ostree-iso-x86_64-*-64bit": 20,
|
"fedora-IoT-dvd_ostree-iso-x86_64-*-64bit": 20,
|
||||||
"fedora-KDE-live-iso-x86_64-*-64bit": 22,
|
"fedora-KDE-live-iso-x86_64-*-64bit": 22,
|
||||||
@ -540,6 +557,7 @@
|
|||||||
},
|
},
|
||||||
"base_services_start": {
|
"base_services_start": {
|
||||||
"profiles": {
|
"profiles": {
|
||||||
|
"fedora-CoreOS-colive-iso-x86_64-*-64bit": 40,
|
||||||
"fedora-IoT-dvd_ostree-iso-aarch64-*-aarch64": 40,
|
"fedora-IoT-dvd_ostree-iso-aarch64-*-aarch64": 40,
|
||||||
"fedora-IoT-dvd_ostree-iso-x86_64-*-64bit": 40,
|
"fedora-IoT-dvd_ostree-iso-x86_64-*-64bit": 40,
|
||||||
"fedora-KDE-live-iso-x86_64-*-64bit": 42,
|
"fedora-KDE-live-iso-x86_64-*-64bit": 42,
|
||||||
@ -586,6 +604,7 @@
|
|||||||
},
|
},
|
||||||
"base_selinux": {
|
"base_selinux": {
|
||||||
"profiles": {
|
"profiles": {
|
||||||
|
"fedora-CoreOS-colive-iso-x86_64-*-64bit": 40,
|
||||||
"fedora-IoT-dvd_ostree-iso-aarch64-*-aarch64": 40,
|
"fedora-IoT-dvd_ostree-iso-aarch64-*-aarch64": 40,
|
||||||
"fedora-IoT-dvd_ostree-iso-x86_64-*-64bit": 40,
|
"fedora-IoT-dvd_ostree-iso-x86_64-*-64bit": 40,
|
||||||
"fedora-KDE-live-iso-x86_64-*-64bit": 42,
|
"fedora-KDE-live-iso-x86_64-*-64bit": 42,
|
||||||
@ -618,6 +637,7 @@
|
|||||||
},
|
},
|
||||||
"base_service_manipulation": {
|
"base_service_manipulation": {
|
||||||
"profiles": {
|
"profiles": {
|
||||||
|
"fedora-CoreOS-colive-iso-x86_64-*-64bit": 40,
|
||||||
"fedora-IoT-dvd_ostree-iso-aarch64-*-aarch64": 40,
|
"fedora-IoT-dvd_ostree-iso-aarch64-*-aarch64": 40,
|
||||||
"fedora-IoT-dvd_ostree-iso-x86_64-*-64bit": 40,
|
"fedora-IoT-dvd_ostree-iso-x86_64-*-64bit": 40,
|
||||||
"fedora-KDE-live-iso-x86_64-*-64bit": 42,
|
"fedora-KDE-live-iso-x86_64-*-64bit": 42,
|
||||||
@ -986,6 +1006,7 @@
|
|||||||
},
|
},
|
||||||
"install_default_upload": {
|
"install_default_upload": {
|
||||||
"profiles": {
|
"profiles": {
|
||||||
|
"fedora-CoreOS-colive-iso-x86_64-*-64bit": 20,
|
||||||
"fedora-IoT-dvd_ostree-iso-aarch64-*-aarch64": 20,
|
"fedora-IoT-dvd_ostree-iso-aarch64-*-aarch64": 20,
|
||||||
"fedora-IoT-dvd_ostree-iso-x86_64-*-64bit": 20,
|
"fedora-IoT-dvd_ostree-iso-x86_64-*-64bit": 20,
|
||||||
"fedora-KDE-live-iso-x86_64-*-64bit": 15,
|
"fedora-KDE-live-iso-x86_64-*-64bit": 15,
|
||||||
@ -1704,6 +1725,7 @@
|
|||||||
},
|
},
|
||||||
"podman": {
|
"podman": {
|
||||||
"profiles": {
|
"profiles": {
|
||||||
|
"fedora-CoreOS-colive-iso-x86_64-*-64bit": 20,
|
||||||
"fedora-IoT-dvd_ostree-iso-aarch64-*-aarch64": 20,
|
"fedora-IoT-dvd_ostree-iso-aarch64-*-aarch64": 20,
|
||||||
"fedora-IoT-dvd_ostree-iso-x86_64-*-64bit": 40
|
"fedora-IoT-dvd_ostree-iso-x86_64-*-64bit": 40
|
||||||
},
|
},
|
||||||
@ -1721,6 +1743,7 @@
|
|||||||
},
|
},
|
||||||
"podman_client": {
|
"podman_client": {
|
||||||
"profiles": {
|
"profiles": {
|
||||||
|
"fedora-CoreOS-colive-iso-x86_64-*-64bit": 20,
|
||||||
"fedora-IoT-dvd_ostree-iso-aarch64-*-aarch64": 20,
|
"fedora-IoT-dvd_ostree-iso-aarch64-*-aarch64": 20,
|
||||||
"fedora-IoT-dvd_ostree-iso-x86_64-*-64bit": 40
|
"fedora-IoT-dvd_ostree-iso-x86_64-*-64bit": 40
|
||||||
},
|
},
|
||||||
@ -1777,6 +1800,7 @@
|
|||||||
},
|
},
|
||||||
"release_identification": {
|
"release_identification": {
|
||||||
"profiles": {
|
"profiles": {
|
||||||
|
"fedora-CoreOS-colive-iso-x86_64-*-64bit": 20,
|
||||||
"fedora-IoT-dvd_ostree-iso-aarch64-*-aarch64": 20,
|
"fedora-IoT-dvd_ostree-iso-aarch64-*-aarch64": 20,
|
||||||
"fedora-IoT-dvd_ostree-iso-x86_64-*-64bit": 20,
|
"fedora-IoT-dvd_ostree-iso-x86_64-*-64bit": 20,
|
||||||
"fedora-KDE-live-iso-x86_64-*-64bit": 50,
|
"fedora-KDE-live-iso-x86_64-*-64bit": 50,
|
||||||
|
20
tests/_coreos_install.pm
Normal file
20
tests/_coreos_install.pm
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
use base "installedtest";
|
||||||
|
use strict;
|
||||||
|
use testapi;
|
||||||
|
use utils;
|
||||||
|
|
||||||
|
sub run {
|
||||||
|
my $self = shift;
|
||||||
|
assert_screen "user_console", 300;
|
||||||
|
type_string "sudo su\n";
|
||||||
|
assert_script_run "coreos-installer install /dev/vda --ignition-url https://www.happyassassin.net/temp/openqa.ign", 600;
|
||||||
|
type_string "reboot\n";
|
||||||
|
}
|
||||||
|
|
||||||
|
sub test_flags {
|
||||||
|
return { fatal => 1 };
|
||||||
|
}
|
||||||
|
|
||||||
|
1;
|
||||||
|
|
||||||
|
# vim: set sw=4 et:
|
@ -28,9 +28,11 @@ sub run {
|
|||||||
validate_script_output "podman container ls", sub { m/fedora-httpd/ };
|
validate_script_output "podman container ls", sub { m/fedora-httpd/ };
|
||||||
# Test apache is working
|
# Test apache is working
|
||||||
assert_script_run "curl http://localhost";
|
assert_script_run "curl http://localhost";
|
||||||
# Open the firewall
|
# Open the firewall, except on CoreOS where it's not installed
|
||||||
|
unless (get_var("SUBVARIANT") eq "CoreOS") {
|
||||||
assert_script_run "firewall-cmd --permanent --zone=internal --add-interface=cni-podman0";
|
assert_script_run "firewall-cmd --permanent --zone=internal --add-interface=cni-podman0";
|
||||||
assert_script_run "firewall-cmd --permanent --zone=internal --add-port=80/tcp";
|
assert_script_run "firewall-cmd --permanent --zone=internal --add-port=80/tcp";
|
||||||
|
}
|
||||||
# tell client we're ready and wait for it to send the message
|
# tell client we're ready and wait for it to send the message
|
||||||
mutex_create("podman_server_ready");
|
mutex_create("podman_server_ready");
|
||||||
my $children = get_children();
|
my $children = get_children();
|
||||||
|
Loading…
Reference in New Issue
Block a user