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
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

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

start_image="rhel96-bootc-brew-${LATEST_RELEASE_TYPE}-with-optional"

# Currently, RHOAI is only available for x86_64
check_platform() {
local -r record_junit=${1:-false}
Expand All @@ -15,20 +17,35 @@ check_platform() {
}

scenario_create_vms() {
if ! does_image_exist "${start_image}"; then
echo "Image '${start_image}' not found - skipping test"
return 0
fi

check_platform true

# 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 "rhel96-bootc-brew-${LATEST_RELEASE_TYPE}-with-optional"
LVM_SYSROOT_SIZE=20480 prepare_kickstart host1 kickstart-bootc.ks.template "${start_image}"
launch_vm --boot_blueprint rhel96-bootc --vm_disksize 30
}

scenario_remove_vms() {
if ! does_image_exist "${start_image}"; then
echo "Image '${start_image}' not found - skipping test"
return 0
fi

check_platform

remove_vm host1
}

scenario_run_tests() {
if ! does_image_exist "${start_image}"; then
echo "Image '${start_image}' not found - skipping test"
return 0
fi

check_platform

run_tests host1 \
Expand Down
19 changes: 18 additions & 1 deletion test/scenarios-bootc/releases/el96-lrel@dual-stack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,33 @@

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

start_image="rhel96-bootc-brew-${LATEST_RELEASE_TYPE}-with-optional"

scenario_create_vms() {
prepare_kickstart host1 kickstart-bootc.ks.template "rhel96-bootc-brew-${LATEST_RELEASE_TYPE}-with-optional"
if ! does_image_exist "${start_image}"; then
echo "Image '${start_image}' not found - skipping test"
return 0
fi

prepare_kickstart host1 kickstart-bootc.ks.template "${start_image}"
launch_vm --boot_blueprint rhel96-bootc --network "${VM_DUAL_STACK_NETWORK}"
}

scenario_remove_vms() {
if ! does_image_exist "${start_image}"; then
echo "Image '${start_image}' not found - skipping test"
return 0
fi

remove_vm host1
}

scenario_run_tests() {
if ! does_image_exist "${start_image}"; then
echo "Image '${start_image}' not found - skipping test"
return 0
fi

local -r vmname=$(full_vm_name host1)
# Valid IP addresses are the first two entries returned by manage-vm script.
local -r vm_ip1=$("${ROOTDIR}/scripts/devenv-builder/manage-vm.sh" ip -n "${vmname}" | head -1)
Expand Down
19 changes: 18 additions & 1 deletion test/scenarios-bootc/releases/el96-lrel@ginkgo-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,32 @@

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

start_image="rhel96-bootc-brew-${LATEST_RELEASE_TYPE}-with-optional"

scenario_create_vms() {
prepare_kickstart host1 kickstart-bootc.ks.template "rhel96-bootc-brew-${LATEST_RELEASE_TYPE}-with-optional"
if ! does_image_exist "${start_image}"; then
echo "Image '${start_image}' not found - skipping test"
return 0
fi

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

scenario_remove_vms() {
if ! does_image_exist "${start_image}"; then
echo "Image '${start_image}' not found - skipping test"
return 0
fi

remove_vm host1
}

scenario_run_tests() {
if ! does_image_exist "${start_image}"; then
echo "Image '${start_image}' not found - skipping test"
return 0
fi

run_gingko_tests host1
}
19 changes: 18 additions & 1 deletion test/scenarios-bootc/releases/el96-lrel@ipv6.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,33 @@ WEB_SERVER_URL="http://[${VM_BRIDGE_IP}]:${WEB_SERVER_PORT}"
# shellcheck disable=SC2034 # used elsewhere
MIRROR_REGISTRY_URL="$(hostname):${MIRROR_REGISTRY_PORT}/microshift"

start_image="rhel96-bootc-brew-${LATEST_RELEASE_TYPE}-with-optional"

scenario_create_vms() {
# Enable IPv6 single stack in kickstart
prepare_kickstart host1 kickstart-bootc.ks.template "rhel96-bootc-brew-${LATEST_RELEASE_TYPE}-with-optional" false true
if ! does_image_exist "${start_image}"; then
echo "Image '${start_image}' not found - skipping test"
return 0
fi

prepare_kickstart host1 kickstart-bootc.ks.template "${start_image}" false true
launch_vm --boot_blueprint rhel96-bootc --network "${VM_IPV6_NETWORK}"
}

scenario_remove_vms() {
if ! does_image_exist "${start_image}"; then
echo "Image '${start_image}' not found - skipping test"
return 0
fi

remove_vm host1
}

scenario_run_tests() {
if ! does_image_exist "${start_image}"; then
echo "Image '${start_image}' not found - skipping test"
return 0
fi

run_tests host1 suites/ipv6/singlestack.robot
}
19 changes: 18 additions & 1 deletion test/scenarios-bootc/releases/el96-lrel@multi-nic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,34 @@

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

start_image="rhel96-bootc-brew-${LATEST_RELEASE_TYPE}-with-optional"

scenario_create_vms() {
prepare_kickstart host1 kickstart-bootc.ks.template "rhel96-bootc-brew-${LATEST_RELEASE_TYPE}-with-optional"
if ! does_image_exist "${start_image}"; then
echo "Image '${start_image}' not found - skipping test"
return 0
fi

prepare_kickstart host1 kickstart-bootc.ks.template "${start_image}"
# Using multus as secondary network to have 2 nics in different networks.
launch_vm --boot_blueprint rhel96-bootc --network default,"${VM_MULTUS_NETWORK}"
}

scenario_remove_vms() {
if ! does_image_exist "${start_image}"; then
echo "Image '${start_image}' not found - skipping test"
return 0
fi

remove_vm host1
}

scenario_run_tests() {
if ! does_image_exist "${start_image}"; then
echo "Image '${start_image}' not found - skipping test"
return 0
fi

local -r vmname=$(full_vm_name host1)
local -r vm_ip1=$("${ROOTDIR}/scripts/devenv-builder/manage-vm.sh" ip -n "${vmname}" | head -1)
local -r vm_ip2=$("${ROOTDIR}/scripts/devenv-builder/manage-vm.sh" ip -n "${vmname}" | tail -1)
Expand Down
19 changes: 18 additions & 1 deletion test/scenarios-bootc/releases/el96-lrel@optional.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,34 @@ VM_BRIDGE_IP="$(get_vm_bridge_ip "${VM_MULTUS_NETWORK}")"
# shellcheck disable=SC2034 # used elsewhere
WEB_SERVER_URL="http://${VM_BRIDGE_IP}:${WEB_SERVER_PORT}"

start_image="rhel96-bootc-brew-${LATEST_RELEASE_TYPE}-with-optional"

scenario_create_vms() {
prepare_kickstart host1 kickstart-bootc.ks.template "rhel96-bootc-brew-${LATEST_RELEASE_TYPE}-with-optional"
if ! does_image_exist "${start_image}"; then
echo "Image '${start_image}' not found - skipping test"
return 0
fi

prepare_kickstart host1 kickstart-bootc.ks.template "${start_image}"
# Two nics - one for macvlan, another for ipvlan (they cannot enslave the same interface)
launch_vm --boot_blueprint rhel96-bootc --network "${VM_MULTUS_NETWORK},${VM_MULTUS_NETWORK}"
}

scenario_remove_vms() {
if ! does_image_exist "${start_image}"; then
echo "Image '${start_image}' not found - skipping test"
return 0
fi

remove_vm host1
}

scenario_run_tests() {
if ! does_image_exist "${start_image}"; then
echo "Image '${start_image}' not found - skipping test"
return 0
fi

run_tests host1 \
--variable "PROMETHEUS_HOST:$(hostname)" \
--variable "PROMETHEUS_PORT:9092" \
Expand Down
19 changes: 18 additions & 1 deletion test/scenarios-bootc/releases/el96-lrel@osconfig.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,33 @@

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

start_image="rhel96-bootc-brew-${LATEST_RELEASE_TYPE}-with-optional"

scenario_create_vms() {
prepare_kickstart host1 kickstart-bootc.ks.template "rhel96-bootc-brew-${LATEST_RELEASE_TYPE}-with-optional"
if ! does_image_exist "${start_image}"; then
echo "Image '${start_image}' not found - skipping test"
return 0
fi

prepare_kickstart host1 kickstart-bootc.ks.template "${start_image}"
launch_vm --boot_blueprint rhel96-bootc
}

scenario_remove_vms() {
if ! does_image_exist "${start_image}"; then
echo "Image '${start_image}' not found - skipping test"
return 0
fi

remove_vm host1
}

scenario_run_tests() {
if ! does_image_exist "${start_image}"; then
echo "Image '${start_image}' not found - skipping test"
return 0
fi

run_tests host1 \
suites/osconfig/clusterid.robot \
suites/osconfig/systemd-resolved.robot
Expand Down
19 changes: 18 additions & 1 deletion test/scenarios-bootc/releases/el96-lrel@router.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,33 @@ export TEST_EXCLUDES="ushift-6085"

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

start_image="rhel96-bootc-brew-${LATEST_RELEASE_TYPE}-with-optional"

scenario_create_vms() {
prepare_kickstart host1 kickstart-bootc.ks.template "rhel96-bootc-brew-${LATEST_RELEASE_TYPE}-with-optional"
if ! does_image_exist "${start_image}"; then
echo "Image '${start_image}' not found - skipping test"
return 0
fi

prepare_kickstart host1 kickstart-bootc.ks.template "${start_image}"
launch_vm --boot_blueprint rhel96-bootc
}

scenario_remove_vms() {
if ! does_image_exist "${start_image}"; then
echo "Image '${start_image}' not found - skipping test"
return 0
fi

remove_vm host1
}

scenario_run_tests() {
if ! does_image_exist "${start_image}"; then
echo "Image '${start_image}' not found - skipping test"
return 0
fi

run_tests host1 \
suites/router
}
19 changes: 18 additions & 1 deletion test/scenarios-bootc/releases/el96-lrel@standard1.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,33 @@

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

start_image="rhel96-bootc-brew-${LATEST_RELEASE_TYPE}-with-optional"

scenario_create_vms() {
prepare_kickstart host1 kickstart-bootc.ks.template "rhel96-bootc-brew-${LATEST_RELEASE_TYPE}-with-optional"
if ! does_image_exist "${start_image}"; then
echo "Image '${start_image}' not found - skipping test"
return 0
fi

prepare_kickstart host1 kickstart-bootc.ks.template "${start_image}"
launch_vm --boot_blueprint rhel96-bootc
}

scenario_remove_vms() {
if ! does_image_exist "${start_image}"; then
echo "Image '${start_image}' not found - skipping test"
return 0
fi

remove_vm host1
}

scenario_run_tests() {
if ! does_image_exist "${start_image}"; then
echo "Image '${start_image}' not found - skipping test"
return 0
fi

run_tests host1 \
--variable "EXPECTED_OS_VERSION:9.6" \
suites/standard1/ suites/selinux/validate-selinux-policy.robot
Expand Down
19 changes: 18 additions & 1 deletion test/scenarios-bootc/releases/el96-lrel@standard2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,32 @@

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

start_image="rhel96-bootc-brew-${LATEST_RELEASE_TYPE}-with-optional"

scenario_create_vms() {
prepare_kickstart host1 kickstart-bootc.ks.template "rhel96-bootc-brew-${LATEST_RELEASE_TYPE}-with-optional"
if ! does_image_exist "${start_image}"; then
echo "Image '${start_image}' not found - skipping test"
return 0
fi

prepare_kickstart host1 kickstart-bootc.ks.template "${start_image}"
launch_vm --boot_blueprint rhel96-bootc
}

scenario_remove_vms() {
if ! does_image_exist "${start_image}"; then
echo "Image '${start_image}' not found - skipping test"
return 0
fi

remove_vm host1
}

scenario_run_tests() {
if ! does_image_exist "${start_image}"; then
echo "Image '${start_image}' not found - skipping test"
return 0
fi

run_tests host1 suites/standard2
}
19 changes: 18 additions & 1 deletion test/scenarios-bootc/releases/el96-lrel@storage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,32 @@

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

start_image="rhel96-bootc-brew-${LATEST_RELEASE_TYPE}-with-optional"

scenario_create_vms() {
prepare_kickstart host1 kickstart-bootc.ks.template "rhel96-bootc-brew-${LATEST_RELEASE_TYPE}-with-optional"
if ! does_image_exist "${start_image}"; then
echo "Image '${start_image}' not found - skipping test"
return 0
fi

prepare_kickstart host1 kickstart-bootc.ks.template "${start_image}"
launch_vm --boot_blueprint rhel96-bootc
}

scenario_remove_vms() {
if ! does_image_exist "${start_image}"; then
echo "Image '${start_image}' not found - skipping test"
return 0
fi

remove_vm host1
}

scenario_run_tests() {
if ! does_image_exist "${start_image}"; then
echo "Image '${start_image}' not found - skipping test"
return 0
fi

run_tests host1 suites/storage/
}
Loading