Add test for RHEL-27174

This commit is contained in:
Frantisek Hrdina 2024-08-26 10:00:44 +02:00
commit b1ddbd7b9b
2 changed files with 45 additions and 0 deletions

View file

@ -0,0 +1,24 @@
summary: Check dropped group(mail) provides
description: ''
contact: František Hrdina <fhrdina@redhat.com>
component:
- postfix
test: ./test.sh
framework: beakerlib
recommend:
- postfix
- rpm
duration: 5m
enabled: true
tag:
- Tier3
tier: '3'
link:
- verifies: https://issues.redhat.com/browse/RHEL-27174
adjust:
- enabled: false
when: distro < rhel-10
continue: false
- enabled: false
when: distro < centos-stream-10
continue: false

View file

@ -0,0 +1,21 @@
#!/bin/bash
# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
. /usr/share/beakerlib/beakerlib.sh || exit 1
rlJournalStart
rlPhaseStartSetup
rlAssertRpm postfix
rlRun "tmp=\$(mktemp -d)" 0 "Create tmp directory"
rlRun "pushd $tmp"
rlPhaseEnd
rlPhaseStartTest
rlRun "rpm -q --provides postfix &> rpm.log" 0 "Check rpm provides"
rlAssertNotGrep "group(mail)" rpm.log
rlPhaseEnd
rlPhaseStartCleanup
rlRun "popd"
rlRun "rm -r $tmp" 0 "Remove tmp directory"
rlPhaseEnd
rlJournalEnd