test/cases: Use openscap customization on RHEL-10
This commit is contained in:
parent
8cf9a542ab
commit
ec4aff7e58
2 changed files with 1 additions and 11 deletions
|
|
@ -419,11 +419,6 @@ EOF
|
||||||
;;
|
;;
|
||||||
esac
|
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
|
export OPENSCAP_CUSTOMIZATION_BLOCK
|
||||||
|
|
||||||
TIMEZONE_CUSTOMIZATION_BLOCK=$(cat <<EOF
|
TIMEZONE_CUSTOMIZATION_BLOCK=$(cat <<EOF
|
||||||
|
|
|
||||||
|
|
@ -82,12 +82,7 @@ function _instanceCheck() {
|
||||||
verify_dirs_files_customization "$_ssh"
|
verify_dirs_files_customization "$_ssh"
|
||||||
|
|
||||||
verify_repository_customization "$_ssh"
|
verify_repository_customization "$_ssh"
|
||||||
# TODO: Remove once Openscap works on el-10
|
verify_openscap_customization "$_ssh"
|
||||||
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"
|
echo "✔️ Checking timezone customization"
|
||||||
TZ=$($_ssh timedatectl show -p Timezone --value)
|
TZ=$($_ssh timedatectl show -p Timezone --value)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue