Skip to content

Commit

Permalink
Add SLE Updates testsuite for 5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Bischoff committed Jul 19, 2024
1 parent 8ed2e0b commit 375ba27
Show file tree
Hide file tree
Showing 2 changed files with 225 additions and 2 deletions.
4 changes: 2 additions & 2 deletions terracumber_config/tf_files/SUSEManager-4.3-SLE-update.tf
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ module "server" {
name = "srv"
provider_settings = {
mac = "aa:b2:92:05:00:f9"
memory = 40960
vcpu = 10
memory = 16384
vcpu = 4
data_pool = "ssd"
}

Expand Down
223 changes: 223 additions & 0 deletions terracumber_config/tf_files/SUSEManager-5.0-SLE-update.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,223 @@
// Mandatory variables for terracumber
variable "URL_PREFIX" {
type = string
default = "https://ci.suse.de/view/Manager/view/Manager-5.0/job/manager-5.0-qe-sle-update"
}

// Not really used as this is for --runall parameter, and we run cucumber step by step
variable "CUCUMBER_COMMAND" {
type = string
default = "export PRODUCT='SUSE-Manager' && run-testsuite"
}

variable "CUCUMBER_GITREPO" {
type = string
default = "https://github.com/SUSE/spacewalk.git"
}

variable "CUCUMBER_BRANCH" {
type = string
default = "Manager-5.0"
}

variable "CUCUMBER_RESULTS" {
type = string
default = "/root/spacewalk/testsuite"
}

variable "MAIL_SUBJECT" {
type = string
default = "Results 5.0 SLE Update $status: $tests scenarios ($failures failed, $errors errors, $skipped skipped, $passed passed)"
}

variable "MAIL_TEMPLATE" {
type = string
default = "../mail_templates/mail-template-jenkins.txt"
}

variable "MAIL_SUBJECT_ENV_FAIL" {
type = string
default = "Results 5.0 SLE Update: Environment setup failed"
}

variable "MAIL_TEMPLATE_ENV_FAIL" {
type = string
default = "../mail_templates/mail-template-jenkins-env-fail.txt"
}

variable "MAIL_FROM" {
type = string
default = "galaxy-noise@suse.de"
}

variable "MAIL_TO" {
type = string
default = "galaxy-noise@suse.de"
}

// sumaform specific variables
variable "SCC_USER" {
type = string
}

variable "SCC_PASSWORD" {
type = string
}

variable "GIT_USER" {
type = string
default = null // Not needed for master, as it is public
}

variable "GIT_PASSWORD" {
type = string
default = null // Not needed for master, as it is public
}

terraform {
required_version = "1.0.10"
required_providers {
libvirt = {
source = "dmacvicar/libvirt"
version = "0.6.3"
}
}
}

provider "libvirt" {
uri = "qemu+tcp://riverworld.mgr.prv.suse.net/system"
}

module "base" {
source = "./modules/base"

cc_username = var.SCC_USER
cc_password = var.SCC_PASSWORD
name_prefix = "suma-su-50-"
use_avahi = false
domain = "mgr.prv.suse.net"
images = [ "sles15sp6o", "opensuse155o", "slemicro55o" ]

mirror = "minima-mirror-ci-bv.mgr.prv.suse.net"
use_mirror_images = true

testsuite = true

provider_settings = {
pool = "ssd"
bridge = "br0"
}
}

module "server_containerized" {
source = "./modules/server_containerized"
base_configuration = module.base.configuration
product_version = "5.0-released"
name = "srv"
image = "slemicro55o"
provider_settings = {
mac = "aa:b2:92:05:00:fd"
memory = 16384
vcpu = 4
data_pool = "ssd"
}

main_disk_size = 1500
runtime = "podman"
container_repository = "registry.suse.com/suse/manager/5.0/x86_64/server"
server_mounted_mirror = "minima-mirror-ci-bv.mgr.prv.suse.net"

auto_accept = false
monitored = true
disable_firewall = false
allow_postgres_connections = false
skip_changelog_import = false
mgr_sync_autologin = false
create_sample_channel = false
create_sample_activation_key = false
create_sample_bootstrap_script = false
publish_private_ssl_key = false
use_os_released_updates = true
disable_download_tokens = false
ssh_key_path = "./salt/controller/id_rsa.pub"
from_email = "root@suse.de"

//server_additional_repos

}

module "proxy_containerized" {
source = "./modules/proxy_containerized"
base_configuration = module.base.configuration
product_version = "5.0-released"
name = "pxy"
image = "slemicro55o"
provider_settings = {
mac = "aa:b2:92:05:00:fe"
memory = 4096
}
server_configuration = {
hostname = "suma-su-50-srv.mgr.prv.suse.net"
username = "admin"
password = "admin"
}

runtime = "podman"
container_repository = "registry.suse.com/suse/manager/5.0/x86_64/proxy"

auto_configure = false
ssh_key_path = "./salt/controller/id_rsa.pub"

//proxy_additional_repos

}

module "sles15sp6-minion" {
source = "./modules/minion"
base_configuration = module.base.configuration
product_version = "5.0-released"
name = "min-sles15sp6"
image = "sles15sp6o"
provider_settings = {
mac = "aa:b2:92:05:00:ff"
memory = 4096
}

server_configuration = {
hostname = "suma-su-50-pxy.mgr.prv.suse.net"
}
auto_connect_to_master = false
use_os_released_updates = false
ssh_key_path = "./salt/controller/id_rsa.pub"

//sle15sp6-minion_additional_repos

}

module "controller" {
source = "./modules/controller"
base_configuration = module.base.configuration
name = "ctl"
provider_settings = {
mac = "aa:b2:92:05:00:fc"
memory = 16384
vcpu = 8
}
swap_file_size = null

// Cucumber repository configuration for the controller
git_username = var.GIT_USER
git_password = var.GIT_PASSWORD
git_repo = var.CUCUMBER_GITREPO
branch = var.CUCUMBER_BRANCH

server_configuration = module.server_containerized.configuration
proxy_configuration = module.proxy_containerized.configuration
sle15sp6_minion_configuration = module.sles15sp6-minion.configuration
}

output "configuration" {
value = {
controller = module.controller.configuration
}
}

0 comments on commit 375ba27

Please sign in to comment.