Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/lvms-helpers/cleanupWorkload.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

set -ux
set -eux

# Set KUBECONFIG path - use dynamic IP-based path
KUBECONFIG=${KUBECONFIG:-/var/lib/microshift/resources/kubeadmin/kubeconfig}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Sourced from scenario.sh and uses functions defined there.

start_image="rhel98-bootc-brew-lrel-optional"
start_image="rhel102-bootc-brew-lrel-fips"

# Currently, RHOAI is only available for x86_64
check_platform() {
Expand All @@ -22,7 +22,7 @@ scenario_create_vms() {

# Increased disk size because of the additional embedded images (especially OVMS which is ~3.5GiB)
LVM_SYSROOT_SIZE=20480 prepare_kickstart host1 kickstart-bootc.ks.template "${start_image}"
launch_vm rhel98-bootc --vm_disksize 30 --vm_vcpus 4
launch_vm rhel102-bootc --fips --vm_disksize 30 --vm_vcpus 4
}

scenario_remove_vms() {
Expand All @@ -37,5 +37,6 @@ scenario_run_tests() {
exit_if_image_not_found "${start_image}"

run_tests host1 \
suites/ai-model-serving/ai-model-serving-online.robot
suites/ai-model-serving/ai-model-serving-online.robot \
suites/fips/
}
24 changes: 0 additions & 24 deletions test/scenarios-bootc/el10/releases/el102-lrel@configuration.sh

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,7 @@ scenario_remove_vms() {

scenario_run_tests() {
exit_if_image_not_found "${start_image}"
run_tests host1 suites/ipv6/dualstack.robot
run_tests host1 \
suites/ipv6/dualstack.robot \
suites/configuration/
}
34 changes: 0 additions & 34 deletions test/scenarios-bootc/el10/releases/el102-lrel@fips.sh

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ EOF"
echo "INFO: Cleaning up LVMS workloads..."
run_command_on_vm host1 'bash -s' < "${TESTDIR}/../scripts/lvms-helpers/cleanupWorkload.sh"

# Run all standard1 tests except version (which requires RPM install verification)
echo "INFO: Running validation tests for multi-config scenario..."
run_tests host1 \
--variable "EXPECTED_OS_VERSION:10.2" \
Expand Down
47 changes: 0 additions & 47 deletions test/scenarios-bootc/el10/releases/el102-lrel@tlsv13-standard1.sh

This file was deleted.

45 changes: 0 additions & 45 deletions test/scenarios-bootc/el10/releases/el102-lrel@tlsv13-standard2.sh

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ scenario_create_vms() {
exit_if_image_not_found "${dest_image}"

prepare_kickstart host1 kickstart-bootc.ks.template "${start_image}"
launch_vm rhel96-bootc --vm_vcpus 4
launch_vm rhel96-bootc --vm_disksize 30 --vm_vcpus 4
}

scenario_remove_vms() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
# ensure MicroShift is upgraded before running validation tests
export TEST_RANDOMIZATION=none

start_image="rhel98-bootc-brew-lrel-optional"
start_image="rhel96-bootc-brew-y1-with-optional"
dest_image="rhel102-bootc-brew-lrel-optional"

scenario_create_vms() {
exit_if_image_not_found "${start_image}"
exit_if_image_not_found "${dest_image}"

prepare_kickstart host1 kickstart-bootc.ks.template "${start_image}"
launch_vm rhel98-bootc --vm_disksize 30 --vm_vcpus 4
launch_vm rhel96-bootc --vm_disksize 30 --vm_vcpus 4
}

scenario_remove_vms() {
Expand Down Expand Up @@ -54,10 +54,11 @@ scenario_run_tests() {
echo "INFO: Checking LVMS resources after upgrade..."
run_command_on_vm host1 'bash -s' < "${TESTDIR}/../scripts/lvms-helpers/checkLvmsResources.sh"

# Run ginkgo tests to validate functionality
run_ginkgo_tests host1 "~Disruptive"

# Cleanup LVMS workloads
echo "INFO: Cleaning up LVMS workloads..."
run_command_on_vm host1 'bash -s' < "${TESTDIR}/../scripts/lvms-helpers/cleanupWorkload.sh"

# Run standard2 suite for basic validation after upgrade
run_tests host1 \
suites/standard2/
}
37 changes: 0 additions & 37 deletions test/scenarios-bootc/el10/releases/el96-y1@el102-lrel@standard1.sh

This file was deleted.

36 changes: 0 additions & 36 deletions test/scenarios-bootc/el10/releases/el96-y1@el102-lrel@standard2.sh

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ scenario_create_vms() {
exit_if_image_not_found "${dest_image}"

prepare_kickstart host1 kickstart-bootc.ks.template "${start_image}"
launch_vm rhel96-bootc --vm_vcpus 4
launch_vm rhel96-bootc --vm_disksize 30 --vm_vcpus 4
}

scenario_remove_vms() {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
#!/bin/bash

# Sourced from scenario.sh and uses functions defined there.

# NOTE: Unlike most suites, these tests rely on being run IN ORDER to
# ensure MicroShift is upgraded before running validation tests
export TEST_RANDOMIZATION=none

start_image="rhel96-bootc-brew-y2-with-optional"
dest_image="rhel102-bootc-brew-lrel-optional"

scenario_create_vms() {
exit_if_image_not_found "${start_image}"
exit_if_image_not_found "${dest_image}"

prepare_kickstart host1 kickstart-bootc.ks.template "${start_image}"
launch_vm rhel96-bootc --vm_disksize 30 --vm_vcpus 4
}

scenario_remove_vms() {
exit_if_image_not_found "${start_image}"
exit_if_image_not_found "${dest_image}"

remove_vm host1
}

scenario_run_tests() {
exit_if_image_not_found "${start_image}"
exit_if_image_not_found "${dest_image}"

# Wait for MicroShift to be ready
wait_for_microshift_to_be_ready host1

# Setup oc client and kubeconfig for ginkgo tests
setup_oc_and_kubeconfig host1

# Pre-upgrade: Create LVMS workloads and validate LVMS is working
echo "INFO: Creating LVMS workloads before upgrade..."
run_command_on_vm host1 'bash -s' < "${TESTDIR}/../scripts/lvms-helpers/createWorkloads.sh"

echo "INFO: Checking LVMS resources before upgrade..."
run_command_on_vm host1 'bash -s' < "${TESTDIR}/../scripts/lvms-helpers/checkLvmsResources.sh"

# Perform upgrade and validate
run_tests host1 \
--variable "TARGET_REF:${dest_image}" \
--variable "BOOTC_REGISTRY:${MIRROR_REGISTRY_URL}" \
suites/upgrade/upgrade-successful.robot

# Post-upgrade: Validate LVMS workloads survived the upgrade
echo "INFO: Checking LVMS workloads survived upgrade..."
run_command_on_vm host1 'bash -s' < "${TESTDIR}/../scripts/lvms-helpers/checkWorkloadExists.sh"

echo "INFO: Checking LVMS resources after upgrade..."
run_command_on_vm host1 'bash -s' < "${TESTDIR}/../scripts/lvms-helpers/checkLvmsResources.sh"

# Cleanup LVMS workloads
echo "INFO: Cleaning up LVMS workloads..."
run_command_on_vm host1 'bash -s' < "${TESTDIR}/../scripts/lvms-helpers/cleanupWorkload.sh"

# Run standard2 suite for basic validation after upgrade
run_tests host1 \
suites/standard2/
}
Loading