tests/api: Remove openscap profile for el-10

Currently there are no openscap profiles for el-10.
This commit is contained in:
Jakub Rusz 2024-08-07 16:30:44 +02:00 committed by Alexander Todorov
parent 22b42d9c95
commit ce9b75ac87
2 changed files with 12 additions and 2 deletions

View file

@ -416,6 +416,12 @@ EOF
)
;;
esac
# TODO: Remove once Openscap works on el-10
if [[ ($ID == rhel || $ID == centos) && ${VERSION_ID%.*} == 10 ]]; then
yellowprint "OpenSCAP not supported on ${ID}-${VERSION_ID} now. No openscap profile applied!"
OPENSCAP_CUSTOMIZATION_BLOCK=
fi
export OPENSCAP_CUSTOMIZATION_BLOCK
TIMEZONE_CUSTOMIZATION_BLOCK=$(cat <<EOF

View file

@ -55,8 +55,12 @@ function _instanceCheck() {
verify_dirs_files_customization "$_ssh"
verify_repository_customization "$_ssh"
verify_openscap_customization "$_ssh"
# TODO: Remove once Openscap works on el-10
if [[ ($ID == rhel || $ID == centos) && ${VERSION_ID%.*} == 10 ]]; then
yellowprint "OpenSCAP not supported on ${ID}-${VERSION_ID} now. No verification made!"
else
verify_openscap_customization "$_ssh"
fi
echo "✔️ Checking timezone customization"
TZ=$($_ssh timedatectl show -p Timezone --value)