os-autoinst-distri-rocky/templates-updates
Adam Williamson 8d1d150798 Handle running update tests on Koji tasks
We quite often want to run the update tests on a Koji task (not
a Bodhi update) for some reason - usually to test a potential
fix for an issue, or at a maintainer's request to test a change
before it is merged upstream and officially sent out as an
update. Up till now I've always hacked up utils.pm on the
staging server by hand to do this, which is horrible. Together
with a commit to fedora_openqa, this should allow us to do it in
a nice, sane way via the CLI. It's mostly just tweaking the
"updates" repo setup in utils.pm as you'd expect, but there's a
bit of subtlety to it because of the installer tests that use
%ADVISORY% as a variable substitution in the disk image name;
you can't do something like `%ADVISORY or KOJITASK%`, sadly, so
I had to have almost-redundant variables ADVISORY, KOJITASK and
ADVISORY_OR_TASK (we could kinda just live with ADVISORY_OR_TASK
except I didn't want to drop ADVISORY as it's an unnecessary
change from previous behavior).

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-01-29 11:54:15 +01:00

1011 lines
47 KiB
Plaintext
Executable File

#!/usr/share/openqa/script/load_templates
#
# Fedora Machines, Products, TestSuites and JobTemplates
#
# use load_templates to load the file into the database
#
{
JobTemplates => [
{
group_name => "Fedora Updates",
machine => { name => "64bit" },
prio => 40,
product => {
arch => "x86_64",
distri => "fedora",
flavor => "updates-workstation",
version => "*",
},
test_suite => { name => "base_selinux" },
},
{
group_name => "Fedora Updates",
machine => { name => "64bit" },
prio => 40,
product => {
arch => "x86_64",
distri => "fedora",
flavor => "updates-server",
version => "*",
},
test_suite => { name => "base_selinux" },
},
{
group_name => "Fedora Updates",
machine => { name => "64bit" },
prio => 42,
product => {
arch => "x86_64",
distri => "fedora",
flavor => "updates-kde",
version => "*",
},
test_suite => { name => "base_selinux" },
},
{
group_name => "Fedora Updates",
machine => { name => "64bit" },
prio => 40,
product => {
arch => "x86_64",
distri => "fedora",
flavor => "updates-workstation",
version => "*",
},
test_suite => { name => "base_services_start" },
},
{
group_name => "Fedora Updates",
machine => { name => "64bit" },
prio => 40,
product => {
arch => "x86_64",
distri => "fedora",
flavor => "updates-server",
version => "*",
},
test_suite => { name => "base_services_start" },
},
{
group_name => "Fedora Updates",
machine => { name => "64bit" },
prio => 42,
product => {
arch => "x86_64",
distri => "fedora",
flavor => "updates-kde",
version => "*",
},
test_suite => { name => "base_services_start" },
},
{
group_name => "Fedora Updates",
machine => { name => "64bit" },
prio => 40,
product => {
arch => "x86_64",
distri => "fedora",
flavor => "updates-workstation",
version => "*",
},
test_suite => { name => "base_service_manipulation" },
},
{
group_name => "Fedora Updates",
machine => { name => "64bit" },
prio => 40,
product => {
arch => "x86_64",
distri => "fedora",
flavor => "updates-server",
version => "*",
},
test_suite => { name => "base_service_manipulation" },
},
{
group_name => "Fedora Updates",
machine => { name => "64bit" },
prio => 42,
product => {
arch => "x86_64",
distri => "fedora",
flavor => "updates-kde",
version => "*",
},
test_suite => { name => "base_service_manipulation" },
},
{
group_name => "Fedora Updates",
machine => { name => "64bit" },
prio => 40,
product => {
arch => "x86_64",
distri => "fedora",
flavor => "updates-workstation",
version => "*",
},
test_suite => { name => "base_update_cli" },
},
{
group_name => "Fedora Updates",
machine => { name => "64bit" },
prio => 40,
product => {
arch => "x86_64",
distri => "fedora",
flavor => "updates-server",
version => "*",
},
test_suite => { name => "base_update_cli" },
},
{
group_name => "Fedora Updates",
machine => { name => "64bit" },
prio => 42,
product => {
arch => "x86_64",
distri => "fedora",
flavor => "updates-kde",
version => "*",
},
test_suite => { name => "base_update_cli" },
},
{
group_name => "Fedora Updates",
machine => { name => "64bit" },
prio => 30,
product => {
arch => "x86_64",
distri => "fedora",
flavor => "updates-workstation",
version => "*",
},
test_suite => { name => "desktop_update_graphical" },
},
{
group_name => "Fedora Updates",
machine => { name => "64bit" },
prio => 32,
product => {
arch => "x86_64",
distri => "fedora",
flavor => "updates-kde",
version => "*",
},
test_suite => { name => "desktop_update_graphical" },
},
{
group_name => "Fedora Updates",
machine => { name => "64bit" },
prio => 30,
product => {
arch => "x86_64",
distri => "fedora",
flavor => "updates-workstation",
version => "*",
},
test_suite => { name => "desktop_terminal" },
},
{
group_name => "Fedora Updates",
machine => { name => "64bit" },
prio => 32,
product => {
arch => "x86_64",
distri => "fedora",
flavor => "updates-kde",
version => "*",
},
test_suite => { name => "desktop_terminal" },
},
{
group_name => "Fedora Updates",
machine => { name => "64bit" },
prio => 30,
product => {
arch => "x86_64",
distri => "fedora",
flavor => "updates-workstation",
version => "*",
},
test_suite => { name => "desktop_browser" },
},
{
group_name => "Fedora Updates",
machine => { name => "64bit" },
prio => 32,
product => {
arch => "x86_64",
distri => "fedora",
flavor => "updates-kde",
version => "*",
},
test_suite => { name => "desktop_browser" },
},
{
group_name => "Fedora Updates",
machine => { name => "64bit" },
prio => 40,
product => {
arch => "x86_64",
distri => "fedora",
flavor => "updates-workstation-upgrade",
version => "*",
},
test_suite => { name => "upgrade_desktop_encrypted_64bit" },
},
{
group_name => "Fedora Updates",
machine => { name => "64bit" },
prio => 40,
product => {
arch => "x86_64",
distri => "fedora",
flavor => "updates-server",
version => "*",
},
test_suite => { name => "server_role_deploy_domain_controller" },
},
{
group_name => "Fedora Updates",
machine => { name => "64bit" },
prio => 40,
product => {
arch => "x86_64",
distri => "fedora",
flavor => "updates-server",
version => "*",
},
test_suite => { name => "server_cockpit_default" },
},
{
group_name => "Fedora Updates",
machine => { name => "64bit" },
prio => 40,
product => {
arch => "x86_64",
distri => "fedora",
flavor => "updates-server",
version => "*",
},
test_suite => { name => "server_cockpit_basic" },
},
{
group_name => "Fedora Updates",
machine => { name => "64bit" },
prio => 40,
product => {
arch => "x86_64",
distri => "fedora",
flavor => "updates-server",
version => "*",
},
test_suite => { name => "realmd_join_cockpit" },
},
{
group_name => "Fedora Updates",
machine => { name => "64bit" },
prio => 30,
product => {
arch => "x86_64",
distri => "fedora",
flavor => "updates-server",
version => "*",
},
test_suite => { name => "realmd_join_sssd" },
},
{
group_name => "Fedora Updates",
machine => { name => "64bit" },
prio => 40,
product => {
arch => "x86_64",
distri => "fedora",
flavor => "updates-server-upgrade",
version => "*",
},
test_suite => { name => "upgrade_server_domain_controller" },
},
{
group_name => "Fedora Updates",
machine => { name => "64bit" },
prio => 30,
product => {
arch => "x86_64",
distri => "fedora",
flavor => "updates-server-upgrade",
version => "*",
},
test_suite => { name => "upgrade_realmd_client" },
},
{
group_name => "Fedora Updates",
machine => { name => "64bit" },
prio => 40,
product => {
arch => "x86_64",
distri => "fedora",
flavor => "updates-server",
version => "*",
},
test_suite => { name => "server_role_deploy_database_server" },
},
{
group_name => "Fedora Updates",
machine => { name => "64bit" },
prio => 40,
product => {
arch => "x86_64",
distri => "fedora",
flavor => "updates-server",
version => "*",
},
test_suite => { name => "server_database_client" },
},
{
group_name => "Fedora Updates",
machine => { name => "64bit" },
prio => 40,
product => {
arch => "x86_64",
distri => "fedora",
flavor => "updates-server",
version => "*",
},
test_suite => { name => "server_firewall_default" },
},
{
group_name => "Fedora Updates",
machine => { name => "64bit" },
prio => 40,
product => {
arch => "x86_64",
distri => "fedora",
flavor => "updates-server",
version => "*",
},
test_suite => { name => "advisory_boot" },
},
{
group_name => "Fedora Updates",
machine => { name => "64bit" },
prio => 40,
product => {
arch => "x86_64",
distri => "fedora",
flavor => "updates-installer",
version => "*",
},
test_suite => { name => "installer_build" },
},
{
group_name => "Fedora Updates",
machine => { name => "64bit" },
prio => 40,
product => {
arch => "x86_64",
distri => "fedora",
flavor => "updates-installer",
version => "*",
},
test_suite => { name => "support_server" },
},
{
group_name => "Fedora Updates",
machine => { name => "64bit" },
prio => 40,
product => {
arch => "x86_64",
distri => "fedora",
flavor => "updates-installer",
version => "*",
},
test_suite => { name => "install_default_update" },
},
{
group_name => "Fedora PowerPC Updates",
machine => { name => "ppc64le" },
prio => 40,
product => {
arch => "ppc64le",
distri => "fedora",
flavor => "updates-server",
version => "*",
},
test_suite => { name => "base_selinux" },
},
{
group_name => "Fedora PowerPC Updates",
machine => { name => "ppc64le" },
prio => 40,
product => {
arch => "ppc64le",
distri => "fedora",
flavor => "updates-server",
version => "*",
},
test_suite => { name => "base_services_start" },
},
{
group_name => "Fedora PowerPC Updates",
machine => { name => "ppc64le" },
prio => 40,
product => {
arch => "ppc64le",
distri => "fedora",
flavor => "updates-server",
version => "*",
},
test_suite => { name => "base_service_manipulation" },
},
{
group_name => "Fedora PowerPC Updates",
machine => { name => "ppc64le" },
prio => 40,
product => {
arch => "ppc64le",
distri => "fedora",
flavor => "updates-server",
version => "*",
},
test_suite => { name => "base_update_cli" },
},
{
group_name => "Fedora PowerPC Updates",
machine => { name => "ppc64le" },
prio => 40,
product => {
arch => "ppc64le",
distri => "fedora",
flavor => "updates-server",
version => "*",
},
test_suite => { name => "server_role_deploy_domain_controller" },
},
{
group_name => "Fedora PowerPC Updates",
machine => { name => "ppc64le" },
prio => 40,
product => {
arch => "ppc64le",
distri => "fedora",
flavor => "updates-server",
version => "*",
},
test_suite => { name => "server_cockpit_default" },
},
{
group_name => "Fedora PowerPC Updates",
machine => { name => "ppc64le" },
prio => 40,
product => {
arch => "ppc64le",
distri => "fedora",
flavor => "updates-server",
version => "*",
},
test_suite => { name => "server_cockpit_basic" },
},
{
group_name => "Fedora PowerPC Updates",
machine => { name => "ppc64le" },
prio => 40,
product => {
arch => "ppc64le",
distri => "fedora",
flavor => "updates-server",
version => "*",
},
test_suite => { name => "realmd_join_cockpit" },
},
{
group_name => "Fedora PowerPC Updates",
machine => { name => "ppc64le" },
prio => 30,
product => {
arch => "ppc64le",
distri => "fedora",
flavor => "updates-server",
version => "*",
},
test_suite => { name => "realmd_join_sssd" },
},
{
group_name => "Fedora PowerPC Updates",
machine => { name => "ppc64le" },
prio => 40,
product => {
arch => "ppc64le",
distri => "fedora",
flavor => "updates-server",
version => "*",
},
test_suite => { name => "server_role_deploy_database_server" },
},
{
group_name => "Fedora PowerPC Updates",
machine => { name => "ppc64le" },
prio => 40,
product => {
arch => "ppc64le",
distri => "fedora",
flavor => "updates-server",
version => "*",
},
test_suite => { name => "server_database_client" },
},
{
group_name => "Fedora PowerPC Updates",
machine => { name => "ppc64le" },
prio => 40,
product => {
arch => "ppc64le",
distri => "fedora",
flavor => "updates-server",
version => "*",
},
test_suite => { name => "server_firewall_default" },
},
{
group_name => "Fedora PowerPC Updates",
machine => { name => "ppc64" },
prio => 40,
product => {
arch => "ppc64",
distri => "fedora",
flavor => "updates-server",
version => "*",
},
test_suite => { name => "base_selinux" },
},
{
group_name => "Fedora PowerPC Updates",
machine => { name => "ppc64" },
prio => 40,
product => {
arch => "ppc64",
distri => "fedora",
flavor => "updates-server",
version => "*",
},
test_suite => { name => "base_services_start" },
},
{
group_name => "Fedora PowerPC Updates",
machine => { name => "ppc64" },
prio => 40,
product => {
arch => "ppc64",
distri => "fedora",
flavor => "updates-server",
version => "*",
},
test_suite => { name => "base_service_manipulation" },
},
{
group_name => "Fedora PowerPC Updates",
machine => { name => "ppc64" },
prio => 40,
product => {
arch => "ppc64",
distri => "fedora",
flavor => "updates-server",
version => "*",
},
test_suite => { name => "base_update_cli" },
},
{
group_name => "Fedora PowerPC Updates",
machine => { name => "ppc64" },
prio => 40,
product => {
arch => "ppc64",
distri => "fedora",
flavor => "updates-server",
version => "*",
},
test_suite => { name => "server_role_deploy_domain_controller" },
},
{
group_name => "Fedora PowerPC Updates",
machine => { name => "ppc64" },
prio => 40,
product => {
arch => "ppc64",
distri => "fedora",
flavor => "updates-server",
version => "*",
},
test_suite => { name => "server_cockpit_default" },
},
{
group_name => "Fedora PowerPC Updates",
machine => { name => "ppc64" },
prio => 40,
product => {
arch => "ppc64",
distri => "fedora",
flavor => "updates-server",
version => "*",
},
test_suite => { name => "server_cockpit_basic" },
},
{
group_name => "Fedora PowerPC Updates",
machine => { name => "ppc64" },
prio => 40,
product => {
arch => "ppc64",
distri => "fedora",
flavor => "updates-server",
version => "*",
},
test_suite => { name => "realmd_join_cockpit" },
},
{
group_name => "Fedora PowerPC Updates",
machine => { name => "ppc64" },
prio => 30,
product => {
arch => "ppc64",
distri => "fedora",
flavor => "updates-server",
version => "*",
},
test_suite => { name => "realmd_join_sssd" },
},
{
group_name => "Fedora PowerPC Updates",
machine => { name => "ppc64" },
prio => 40,
product => {
arch => "ppc64",
distri => "fedora",
flavor => "updates-server",
version => "*",
},
test_suite => { name => "server_role_deploy_database_server" },
},
{
group_name => "Fedora PowerPC Updates",
machine => { name => "ppc64" },
prio => 40,
product => {
arch => "ppc64",
distri => "fedora",
flavor => "updates-server",
version => "*",
},
test_suite => { name => "server_database_client" },
},
{
group_name => "Fedora PowerPC Updates",
machine => { name => "ppc64" },
prio => 40,
product => {
arch => "ppc64",
distri => "fedora",
flavor => "updates-server",
version => "*",
},
test_suite => { name => "server_firewall_default" },
},
{
group_name => "Fedora PowerPC Updates",
machine => { name => "ppc64" },
prio => 40,
product => {
arch => "ppc64",
distri => "fedora",
flavor => "updates-server",
version => "*",
},
test_suite => { name => "advisory_boot" },
},
{
group_name => "Fedora AArch64 Updates",
machine => { name => "aarch64" },
prio => 40,
product => {
arch => "aarch64",
distri => "fedora",
flavor => "updates-server",
version => "*",
},
test_suite => { name => "base_selinux" },
},
{
group_name => "Fedora AArch64 Updates",
machine => { name => "aarch64" },
prio => 40,
product => {
arch => "aarch64",
distri => "fedora",
flavor => "updates-server",
version => "*",
},
test_suite => { name => "base_services_start" },
},
{
group_name => "Fedora AArch64 Updates",
machine => { name => "aarch64" },
prio => 40,
product => {
arch => "aarch64",
distri => "fedora",
flavor => "updates-server",
version => "*",
},
test_suite => { name => "base_service_manipulation" },
},
{
group_name => "Fedora AArch64 Updates",
machine => { name => "aarch64" },
prio => 40,
product => {
arch => "aarch64",
distri => "fedora",
flavor => "updates-server",
version => "*",
},
test_suite => { name => "base_update_cli" },
},
{
group_name => "Fedora AArch64 Updates",
machine => { name => "aarch64" },
prio => 40,
product => {
arch => "aarch64",
distri => "fedora",
flavor => "updates-server",
version => "*",
},
test_suite => { name => "server_role_deploy_domain_controller" },
},
{
group_name => "Fedora AArch64 Updates",
machine => { name => "aarch64" },
prio => 40,
product => {
arch => "aarch64",
distri => "fedora",
flavor => "updates-server",
version => "*",
},
test_suite => { name => "server_cockpit_default" },
},
{
group_name => "Fedora AArch64 Updates",
machine => { name => "aarch64" },
prio => 40,
product => {
arch => "aarch64",
distri => "fedora",
flavor => "updates-server",
version => "*",
},
test_suite => { name => "server_cockpit_basic" },
},
{
group_name => "Fedora AArch64 Updates",
machine => { name => "aarch64" },
prio => 40,
product => {
arch => "aarch64",
distri => "fedora",
flavor => "updates-server",
version => "*",
},
test_suite => { name => "realmd_join_cockpit" },
},
{
group_name => "Fedora AArch64 Updates",
machine => { name => "aarch64" },
prio => 30,
product => {
arch => "aarch64",
distri => "fedora",
flavor => "updates-server",
version => "*",
},
test_suite => { name => "realmd_join_sssd" },
},
{
group_name => "Fedora AArch64 Updates",
machine => { name => "aarch64" },
prio => 40,
product => {
arch => "aarch64",
distri => "fedora",
flavor => "updates-server",
version => "*",
},
test_suite => { name => "server_role_deploy_database_server" },
},
{
group_name => "Fedora AArch64 Updates",
machine => { name => "aarch64" },
prio => 40,
product => {
arch => "aarch64",
distri => "fedora",
flavor => "updates-server",
version => "*",
},
test_suite => { name => "server_database_client" },
},
{
group_name => "Fedora AArch64 Updates",
machine => { name => "aarch64" },
prio => 40,
product => {
arch => "aarch64",
distri => "fedora",
flavor => "updates-server",
version => "*",
},
test_suite => { name => "server_firewall_default" },
},
{
group_name => "Fedora AArch64 Updates",
machine => { name => "aarch64" },
prio => 40,
product => {
arch => "aarch64",
distri => "fedora",
flavor => "updates-server",
version => "*",
},
test_suite => { name => "advisory_boot" },
},
],
Products => [
{
arch => "x86_64",
distri => "fedora",
flavor => "updates-workstation",
name => "",
settings => [
{ key => "DESKTOP", value => "gnome" },
],
version => "*",
},
{
arch => "x86_64",
distri => "fedora",
flavor => "updates-workstation-upgrade",
name => "",
settings => [
{ key => "DESKTOP", value => "gnome" },
],
version => "*",
},
{
arch => "x86_64",
distri => "fedora",
flavor => "updates-kde",
name => "",
settings => [
{ key => "DESKTOP", value => "kde" }
],
version => "*",
},
{
arch => "x86_64",
distri => "fedora",
flavor => "updates-server",
name => "",
settings => [
],
version => "*",
},
{
arch => "x86_64",
distri => "fedora",
flavor => "updates-server-upgrade",
name => "",
settings => [
],
version => "*",
},
{
arch => "ppc64le",
distri => "fedora",
flavor => "updates-server",
name => "",
settings => [
],
version => "*",
},
{
arch => "x86_64",
distri => "fedora",
flavor => "updates-installer",
name => "",
settings => [
],
version => "*",
},
{
arch => "ppc64le",
distri => "fedora",
flavor => "updates-server-upgrade",
name => "",
settings => [
],
version => "*",
},
{
arch => "ppc64",
distri => "fedora",
flavor => "updates-server",
name => "",
settings => [
],
version => "*",
},
{
arch => "ppc64",
distri => "fedora",
flavor => "updates-server-upgrade",
name => "",
settings => [
],
version => "*",
},
{
arch => "aarch64",
distri => "fedora",
flavor => "updates-server",
name => "",
settings => [
],
version => "*",
},
{
arch => "aarch64",
distri => "fedora",
flavor => "updates-server-upgrade",
name => "",
settings => [
],
version => "*",
},
],
TestSuites => [
{
name => "advisory_boot",
settings => [
{ key => "USER_LOGIN", value => "false" },
{ key => "ROOT_PASSWORD", value => "weakpassword" },
{ key => "BOOTFROM", value => "c" },
{ key => "ADVISORY_BOOT_TEST", value => "1" },
],
},
{
name => "installer_build",
settings => [
{ key => "POSTINSTALL", value => "_installer_build" },
{ key => "USER_LOGIN", value => "false" },
{ key => "ROOT_PASSWORD", value => "weakpassword" },
{ key => "BOOTFROM", value => "c" },
{ key => "HDD_1", value => "disk_f%VERSION%_minimal_3_%ARCH%.img" },
],
},
{
name => "install_default_update",
settings => [
{ key => "INSTALL", value => "1" },
{ key => "INSTALL_UNLOCK", value => "support_ready" },
{ key => "ISO", value => "%ADVISORY_OR_TASK%-netinst-%ARCH%.iso" },
{ key => "NICTYPE", value => "tap" },
{ key => "PACKAGE_SET", value => "default" },
{ key => "PARALLEL_WITH", value => "support_server" },
{ key => "ADD_REPOSITORY_VARIATION", value => "nfs://10.0.2.110:/opt/update_repo" },
{ key => "+START_AFTER_TEST", value => "installer_build" },
{ key => "WORKER_CLASS", value => "tap" },
],
},
],
}