From 00b3b86290e321543309da15dd6777f554f29625 Mon Sep 17 00:00:00 2001 From: Alejandro Gullon Date: Wed, 24 Jun 2026 15:19:22 +0200 Subject: [PATCH] USHIFT-7169: Add RHEL 10.2 RPM standard release test scenario Add el102@rpm-standard.sh under test/scenarios-bootc/el10/releases/ for testing MicroShift RPM lifecycle on a bare RHEL 10.2 VM. Runs install, standard1, standard2, and remove test suites sequentially on a single VM. Adapted from el98@rpm-standard{1,2}.sh with RHEL 10 adaptations: - rhel102-installer VM image - CDN repo files with entitlement certs for rhocp/fast-datapath - subscription-manager release set to 10.2 Co-Authored-By: Claude Opus 4.6 pre-commit.check-secrets: ENABLED --- .../group2/rhel102-installer.image-installer | 4 +- .../el10/releases/el102@rpm-standard.sh | 134 ++++++++++++++++++ 2 files changed, 135 insertions(+), 3 deletions(-) create mode 100644 test/scenarios-bootc/el10/releases/el102@rpm-standard.sh diff --git a/test/image-blueprints-bootc/el10/layer1-base/group2/rhel102-installer.image-installer b/test/image-blueprints-bootc/el10/layer1-base/group2/rhel102-installer.image-installer index 2210caeccf..c5271c9e1d 100644 --- a/test/image-blueprints-bootc/el10/layer1-base/group2/rhel102-installer.image-installer +++ b/test/image-blueprints-bootc/el10/layer1-base/group2/rhel102-installer.image-installer @@ -1,4 +1,2 @@ -# TODO: Replace this by a RHEL 10.2 image when its RPM repositories are released. -# rhel-10.2 -rhel-10.1 +rhel-10.2 diff --git a/test/scenarios-bootc/el10/releases/el102@rpm-standard.sh b/test/scenarios-bootc/el10/releases/el102@rpm-standard.sh new file mode 100644 index 0000000000..fb411abc16 --- /dev/null +++ b/test/scenarios-bootc/el10/releases/el102@rpm-standard.sh @@ -0,0 +1,134 @@ +#!/bin/bash + +# Sourced from scenario.sh and uses functions defined there. + +# The RPM-based image used to create the VM for this test does not +# include MicroShift or greenboot, so tell the framework not to wait +# for greenboot to finish when creating the VM. +export SKIP_GREENBOOT=true + +# NOTE: Unlike most suites, these tests rely on being run IN ORDER to +# ensure the host is in a good state at the start of each test. We +# could have separated them and run them as separate scenarios, but +# did not want to spend the resources on a new VM. +export TEST_RANDOMIZATION=none + +# Add extra timeout because it run both standard1 and standard2 suites. +export TEST_EXECUTION_TIMEOUT=60m + +# On RHEL 10, rhocp and fast-datapath repos are not available via +# subscription-manager. Create repo files pointing to the RHEL 9 CDN +# using entitlement certificates as a workaround. +configure_cdn_repo() { + local -r repo_id=$1 + local -r repo_name=$2 + local -r baseurl=$3 + + local -r cert=$(run_command_on_vm host1 "ls /etc/pki/entitlement/[0-9]*.pem | grep -v '\-key.pem' | head -n1") + local -r key=$(run_command_on_vm host1 "ls /etc/pki/entitlement/[0-9]*-key.pem | head -n1") + local -r tmp_file=$(mktemp) + + tee "${tmp_file}" >/dev/null </dev/null <