Adjust tests for 8.8 and 9.2
This commit is contained in:
parent
29fd2873a1
commit
a8df4879ac
9 changed files with 30 additions and 28 deletions
|
|
@ -77,12 +77,12 @@ SSH_KEY=${SSH_DATA_DIR}/id_rsa
|
|||
SSH_KEY_PUB=$(cat "${SSH_KEY}".pub)
|
||||
|
||||
case "${ID}-${VERSION_ID}" in
|
||||
"rhel-8.7")
|
||||
"rhel-8.8")
|
||||
OS_VARIANT="rhel8-unknown"
|
||||
PROFILE="xccdf_org.ssgproject.content_profile_cis"
|
||||
DATASTREAM="/usr/share/xml/scap/ssg/content/ssg-rhel8-ds.xml"
|
||||
;;
|
||||
"rhel-9.1")
|
||||
"rhel-9.2")
|
||||
OS_VARIANT="rhel9-unknown"
|
||||
PROFILE="xccdf_org.ssgproject.content_profile_cis"
|
||||
DATASTREAM="/usr/share/xml/scap/ssg/content/ssg-rhel9-ds.xml"
|
||||
|
|
|
|||
|
|
@ -101,12 +101,12 @@ case "${ID}-${VERSION_ID}" in
|
|||
OS_VARIANT="fedora-unknown"
|
||||
EMBEDED_CONTAINER="false"
|
||||
;;
|
||||
"rhel-8.7")
|
||||
"rhel-8.8")
|
||||
OSTREE_REF="test/rhel/8/${ARCH}/edge"
|
||||
OS_VARIANT="rhel8-unknown"
|
||||
EMBEDED_CONTAINER="true"
|
||||
;;
|
||||
"rhel-9.1")
|
||||
"rhel-9.2")
|
||||
OSTREE_REF="test/rhel/9/${ARCH}/edge"
|
||||
OS_VARIANT="rhel9-unknown"
|
||||
EMBEDED_CONTAINER="true"
|
||||
|
|
|
|||
|
|
@ -86,11 +86,11 @@ SSH_KEY=${SSH_DATA_DIR}/id_rsa
|
|||
SSH_KEY_PUB=$(cat "${SSH_KEY}".pub)
|
||||
|
||||
case "${ID}-${VERSION_ID}" in
|
||||
"rhel-8.7")
|
||||
"rhel-8.8")
|
||||
OSTREE_REF="rhel/8/${ARCH}/edge"
|
||||
OS_VARIANT="rhel8-unknown"
|
||||
;;
|
||||
"rhel-9.1")
|
||||
"rhel-9.2")
|
||||
OSTREE_REF="rhel/9/${ARCH}/edge"
|
||||
OS_VARIANT="rhel9-unknown"
|
||||
;;
|
||||
|
|
@ -299,6 +299,8 @@ name = "kernel-rt"
|
|||
EOF
|
||||
fi
|
||||
|
||||
# TODO: remove this workaround
|
||||
|
||||
# User in raw image blueprint is not for RHEL 9.1 and 8.7
|
||||
# Workaround for RHEL 9.1 and 8.7 nightly test
|
||||
# Check osbuild-composer version first
|
||||
|
|
|
|||
|
|
@ -82,21 +82,21 @@ SSH_KEY=${SSH_DATA_DIR}/id_rsa
|
|||
SSH_KEY_PUB=$(cat "${SSH_KEY}".pub)
|
||||
|
||||
case "${ID}-${VERSION_ID}" in
|
||||
"rhel-8.7")
|
||||
"rhel-8.8")
|
||||
OSTREE_REF="rhel/8/${ARCH}/edge"
|
||||
OS_VARIANT="rhel8-unknown"
|
||||
# Use a stable installer image unless it's the nightly pipeline
|
||||
BOOT_LOCATION="http://download.devel.redhat.com/released/rhel-8/RHEL-8/8.6.0/BaseOS/x86_64/os/"
|
||||
BOOT_LOCATION="http://download.devel.redhat.com/released/rhel-8/RHEL-8/8.7.0/BaseOS/x86_64/os/"
|
||||
if [ "${NIGHTLY:=false}" == "true" ]; then
|
||||
BOOT_LOCATION="${COMPOSE_URL:-}/compose/BaseOS/x86_64/os/"
|
||||
fi
|
||||
PARENT_REF="rhel/8/${ARCH}/edge"
|
||||
;;
|
||||
"rhel-9.1")
|
||||
"rhel-9.2")
|
||||
OSTREE_REF="rhel/9/${ARCH}/edge"
|
||||
OS_VARIANT="rhel9-unknown"
|
||||
# Use a stable installer image unless it's the nightly pipeline
|
||||
BOOT_LOCATION="http://download.devel.redhat.com/released/rhel-9/RHEL-9/9.0.0/BaseOS/x86_64/os/"
|
||||
BOOT_LOCATION="http://download.devel.redhat.com/released/rhel-9/RHEL-9/9.1.0/BaseOS/x86_64/os/"
|
||||
if [ "${NIGHTLY:=false}" == "true" ]; then
|
||||
BOOT_LOCATION="${COMPOSE_URL:-}/compose/BaseOS/x86_64/os/"
|
||||
fi
|
||||
|
|
|
|||
|
|
@ -82,21 +82,21 @@ SSH_KEY=${SSH_DATA_DIR}/id_rsa
|
|||
SSH_KEY_PUB=$(cat "${SSH_KEY}".pub)
|
||||
|
||||
case "${ID}-${VERSION_ID}" in
|
||||
"rhel-8.7")
|
||||
"rhel-8.8")
|
||||
OSTREE_REF="rhel/8/${ARCH}/edge"
|
||||
OS_VARIANT="rhel8-unknown"
|
||||
# Use a stable installer image unless it's the nightly pipeline
|
||||
BOOT_LOCATION="http://download.devel.redhat.com/released/rhel-8/RHEL-8/8.6.0/BaseOS/x86_64/os/"
|
||||
BOOT_LOCATION="http://download.devel.redhat.com/released/rhel-8/RHEL-8/8.7.0/BaseOS/x86_64/os/"
|
||||
if [ "${NIGHTLY:=false}" == "true" ]; then
|
||||
BOOT_LOCATION="${COMPOSE_URL:-}/compose/BaseOS/x86_64/os/"
|
||||
fi
|
||||
PARENT_REF="rhel/8/${ARCH}/edge"
|
||||
;;
|
||||
"rhel-9.1")
|
||||
"rhel-9.2")
|
||||
OSTREE_REF="rhel/9/${ARCH}/edge"
|
||||
OS_VARIANT="rhel9-unknown"
|
||||
# Use a stable installer image unless it's the nightly pipeline
|
||||
BOOT_LOCATION="http://download.devel.redhat.com/released/rhel-9/RHEL-9/9.0.0/BaseOS/x86_64/os/"
|
||||
BOOT_LOCATION="http://download.devel.redhat.com/released/rhel-9/RHEL-9/9.1.0/BaseOS/x86_64/os/"
|
||||
if [ "${NIGHTLY:=false}" == "true" ]; then
|
||||
BOOT_LOCATION="${COMPOSE_URL:-}/compose/BaseOS/x86_64/os/"
|
||||
fi
|
||||
|
|
|
|||
|
|
@ -98,11 +98,11 @@ SSH_KEY=${SSH_DATA_DIR}/id_rsa
|
|||
SSH_KEY_PUB=$(cat "${SSH_KEY}".pub)
|
||||
|
||||
case "${ID}-${VERSION_ID}" in
|
||||
"rhel-8.7")
|
||||
"rhel-8.8")
|
||||
OSTREE_REF="rhel/8/${ARCH}/edge"
|
||||
OS_VARIANT="rhel8-unknown"
|
||||
;;
|
||||
"rhel-9.1")
|
||||
"rhel-9.2")
|
||||
OSTREE_REF="rhel/9/${ARCH}/edge"
|
||||
OS_VARIANT="rhel9-unknown"
|
||||
;;
|
||||
|
|
|
|||
|
|
@ -45,16 +45,16 @@ case "${ID}-${VERSION_ID}" in
|
|||
EMBEDED_CONTAINER="false"
|
||||
FIREWALL_FEATURE="false"
|
||||
;;
|
||||
"rhel-8.6")
|
||||
"rhel-8.7")
|
||||
IMAGE_TYPE=edge-commit
|
||||
OSTREE_REF="rhel/8/${ARCH}/edge"
|
||||
OS_VARIANT="rhel8-unknown"
|
||||
USER_IN_COMMIT="true"
|
||||
BOOT_LOCATION="http://download.devel.redhat.com/released/rhel-8/RHEL-8/8.6.0/BaseOS/x86_64/os/"
|
||||
BOOT_LOCATION="http://download.devel.redhat.com/released/rhel-8/RHEL-8/8.7.0/BaseOS/x86_64/os/"
|
||||
EMBEDED_CONTAINER="false"
|
||||
FIREWALL_FEATURE="false"
|
||||
;;
|
||||
"rhel-8.7")
|
||||
"rhel-8.8")
|
||||
IMAGE_TYPE=edge-commit
|
||||
OSTREE_REF="rhel/8/${ARCH}/edge"
|
||||
OS_VARIANT="rhel8-unknown"
|
||||
|
|
@ -68,16 +68,16 @@ case "${ID}-${VERSION_ID}" in
|
|||
BOOT_LOCATION="${COMPOSE_URL:-}/compose/BaseOS/x86_64/os/"
|
||||
fi
|
||||
;;
|
||||
"rhel-9.0")
|
||||
"rhel-9.1")
|
||||
IMAGE_TYPE=edge-commit
|
||||
OSTREE_REF="rhel/9/${ARCH}/edge"
|
||||
OS_VARIANT="rhel9.0"
|
||||
OS_VARIANT="rhel9.1"
|
||||
USER_IN_COMMIT="true"
|
||||
BOOT_LOCATION="http://download.devel.redhat.com/released/rhel-9/RHEL-9/9.0.0/BaseOS/x86_64/os/"
|
||||
BOOT_LOCATION="http://download.devel.redhat.com/released/rhel-9/RHEL-9/9.1.0/BaseOS/x86_64/os/"
|
||||
EMBEDED_CONTAINER="false"
|
||||
FIREWALL_FEATURE="false"
|
||||
;;
|
||||
"rhel-9.1")
|
||||
"rhel-9.2")
|
||||
IMAGE_TYPE=edge-commit
|
||||
OSTREE_REF="rhel/9/${ARCH}/edge"
|
||||
OS_VARIANT="rhel9-unknown"
|
||||
|
|
|
|||
|
|
@ -71,8 +71,8 @@ ignoredisk --only-use=vda
|
|||
autopart --type=lvm
|
||||
clearpart --all --initlabel --drives=vda
|
||||
|
||||
repo --name baseos --baseurl="http://download.devel.redhat.com/rhel-8/nightly/RHEL-8/latest-RHEL-8.7.0/compose/BaseOS/x86_64/os/" --install
|
||||
repo --name appstream --baseurl="http://download.devel.redhat.com/rhel-8/nightly/RHEL-8/latest-RHEL-8.7.0/compose/AppStream/x86_64/os/" --install
|
||||
repo --name baseos --baseurl="http://download.devel.redhat.com/rhel-8/nightly/RHEL-8/latest-RHEL-8.8.0/compose/BaseOS/x86_64/os/" --install
|
||||
repo --name appstream --baseurl="http://download.devel.redhat.com/rhel-8/nightly/RHEL-8/latest-RHEL-8.8.0/compose/AppStream/x86_64/os/" --install
|
||||
|
||||
%packages
|
||||
@core
|
||||
|
|
@ -103,7 +103,7 @@ sudo virt-install --name rhel-test \
|
|||
--memory 3072 \
|
||||
--vcpus 2 \
|
||||
--disk size=20 \
|
||||
--location http://download.devel.redhat.com/rhel-8/nightly/RHEL-8/latest-RHEL-8.7.0/compose/BaseOS/x86_64/os/ \
|
||||
--location http://download.devel.redhat.com/rhel-8/nightly/RHEL-8/latest-RHEL-8.8.0/compose/BaseOS/x86_64/os/ \
|
||||
--network network=integration,mac=34:49:22:B0:83:30 \
|
||||
--console pipe,source.path="$TEMPFILE" \
|
||||
--noautoconsole \
|
||||
|
|
|
|||
|
|
@ -22,13 +22,13 @@ get_data_files
|
|||
tee /etc/leapp/files/leapp_upgrade_repositories.repo > /dev/null << EOF
|
||||
[APPSTREAM]
|
||||
name=APPSTREAM
|
||||
baseurl=http://download.devel.redhat.com/rhel-9/nightly/RHEL-9/latest-RHEL-9.1.0/compose/AppStream/x86_64/os/
|
||||
baseurl=http://download.devel.redhat.com/rhel-9/nightly/RHEL-9/latest-RHEL-9.2.0/compose/AppStream/x86_64/os/
|
||||
enabled=0
|
||||
gpgcheck=0
|
||||
|
||||
[BASEOS]
|
||||
name=BASEOS
|
||||
baseurl=http://download.devel.redhat.com/rhel-9/nightly/RHEL-9/latest-RHEL-9.1.0/compose/BaseOS/x86_64/os/
|
||||
baseurl=http://download.devel.redhat.com/rhel-9/nightly/RHEL-9/latest-RHEL-9.2.0/compose/BaseOS/x86_64/os/
|
||||
enabled=0
|
||||
gpgcheck=0
|
||||
EOF
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue