Add test for RHEL-27174
This commit is contained in:
parent
186be0d11c
commit
b1ddbd7b9b
2 changed files with 45 additions and 0 deletions
24
Sanity/drop-group-mail-provides/main.fmf
Normal file
24
Sanity/drop-group-mail-provides/main.fmf
Normal 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
|
||||
21
Sanity/drop-group-mail-provides/test.sh
Executable file
21
Sanity/drop-group-mail-provides/test.sh
Executable 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue