test/api.sh: disable rpm customization on el10/c10s

The reason is that the key that we use to test the customization uses
SHA-1 in its signature. And this algorithm is no longer allowed by
default on el10 / c10s.

Signed-off-by: Tomáš Hozza <thozza@redhat.com>
This commit is contained in:
Tomáš Hozza 2024-08-12 13:57:30 +02:00 committed by Tomáš Hozza
parent 768537dba3
commit 725c5cdb25

View file

@ -454,6 +454,11 @@ RPM_CUSTOMIZATION_BLOCK=$(cat <<EOF
}
EOF
)
# TODO: Remove once the RPM-GPG-KEY-redhat-beta does not use SHA-1
if [[ ($ID == rhel || $ID == centos) && ${VERSION_ID%.*} == 10 ]]; then
yellowprint "RPM-GPG-KEY-redhat-beta uses SHA-1, which is not supported on ${ID}-${VERSION_ID}. No rpm customization applied!"
RPM_CUSTOMIZATION_BLOCK=
fi
export RPM_CUSTOMIZATION_BLOCK
RHSM_CUSTOMIZATION_BLOCK=$(cat <<EOF