Skip to content

Commit

Permalink
test: RHEL 10 dropped SHA1 crypto policy module
Browse files Browse the repository at this point in the history
/usr/share/crypto-policies/policies/modules/SHA1.pmod went away
(deliberately) in the latest crypto-policies CentOS 10 update.

Also drop the obsolete RHEL 8 special case, we don't test/support RHEL 8
from main any more.
  • Loading branch information
martinpitt committed May 24, 2024
1 parent 7386c55 commit 843cc84
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/verify/check-system-info
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
# You should have received a copy of the GNU Lesser General Public License
# along with Cockpit; If not, see <http://www.gnu.org/licenses/>.

import re
import time

import packagelib
Expand Down Expand Up @@ -794,9 +795,9 @@ password=foobar
profile = m.execute(cmd + " --show").strip()
b.wait_text("#crypto-policy-button", shown_profile_text(profile))

# RHEL 8 has no SHA1 policy, so do not show it.
# RHEL 10 has no SHA1 policy, so do not show it.
b.click("#crypto-policy-button")
func = b.wait_not_present if m.image.startswith('rhel-8') else b.wait_visible
func = b.wait_not_present if re.match('(centos|rhel)-10.*', m.image) else b.wait_visible
func(".pf-v5-c-menu__item-main .pf-v5-c-menu__item-text:contains('DEFAULT:SHA1')")
b.click("#crypto-policy-dialog button:contains('Cancel')")
b.wait_not_present("#crypto-policy-dialog")
Expand Down

0 comments on commit 843cc84

Please sign in to comment.