Skip to content

Commit

Permalink
test/api.sh: disable rpm customization on el10/c10s
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
thozza committed Aug 13, 2024
1 parent 768537d commit 725c5cd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/cases/api.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 725c5cd

Please sign in to comment.