Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions Plans/general.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
summary: test plan for usbguard errata testing

#required usage of machine with usb controller

provision:
hostname: "~ intel*"

prepare:
- how: shell
script:
- systemctl disable --now dnf-makecache.service || true
- systemctl disable --now dnf-makecache.timer || true
- dnf makecache

discover:
- name: Upstream_usbguard_tests
how: fmf
url: https://github.com/RedHat-SP-Security/usbguard-tests
ref: notifier
test:
- /Regression
- /Sanity
exclude:
- /Sanity/rules-fuzz

adjust:
- when: distro == rhel-9 or distro == centos-stream-9
prepare+:
- how: shell
script:
- dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm https://dl.fedoraproject.org/pub/epel/epel-next-release-latest-9.noarch.rpm

execute:
how: tmt

2 changes: 2 additions & 0 deletions Sanity/notifier-ipc/main.fmf
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,6 @@ link:
adjust+:
- enabled: false
when: distro < rhel-8.6
- enabled: false
when: distro >= rhel-10
extra-nitrate: TC#0611602
6 changes: 1 addition & 5 deletions Sanity/service-sanity/runtest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,7 @@ rlJournalStart
rlRun "systemctl daemon-reexec"
rlRun "rlServiceStart usbguard"
rlRun -s "journalctl --no-pager --since=\"$start_time\""
if rlIsFedora; then
rlAssertGrep "Started usbguard.service - USBGuard daemon" $rlRun_LOG
else
rlAssertGrep "Started USBGuard daemon" $rlRun_LOG
fi
rlAssertGrep "Started (usbguard.service - )?USBGuard daemon" $rlRun_LOG -Eq
rlAssertNotGrep "IPAddressDeny" $rlRun_LOG
rm -rf $rlRun_LOG
rlRun "rlServiceStatus usbguard"
Expand Down