Commit Graph

12 Commits

Author SHA1 Message Date
Vit Mojzis 5886bbdd11 tests/Regression/Report-bugs: Add new test RPM 2020-08-05 18:05:15 +02:00
Petr Lautrbach 6882e142b6 tests: Add public_content test
Does public_content plugin work as expected with the current
setroubleshoot-server?
2020-05-27 13:58:28 +02:00
Vit Mojzis 01e036ef43 tests: Add Regression/Report-bugs-on-corresponding-components
Policy packages to be used in the test are specified using
TEST_PACKAGES variable in the Makefile. Corresponding avc_<package_name>
file has to exist for each such package.

avc_<package_name> files contain AVCs with "scontext" domain defined
in policy module installed by <package_name> RPM. The test verifies that
setroubleshoot is able to properly identify the source package.
2020-05-22 13:17:51 +02:00
Vit Mojzis bb3d75bf71 tests/sealert-s-traceback-invalid-display: remove invalid argument
The argument was never used since sealert always crashed on GUI setup,
but it iss still better to remove it to avoid issues in the future.
2020-05-13 16:44:48 +02:00
Vit Mojzis 8e35736477 tests: Add Regression/sealert-s-traceback-invalid-display
This test should make sure that "sealert -s" does not traceback
with DISPLAY set to invalid value.
2020-04-28 15:56:44 +02:00
Petr Lautrbach 2751df1935 no-plugin-exception-during-analyses: Fix indentation 2020-01-11 19:46:39 +01:00
Petr Lautrbach e4ba63e00b no-plugin-exception-during-analyses: Test sealert -a ./short.log
short.log exposes a problem with Plugin Exception in catchall_labels plugin

Covers "'generator' object is not subscriptable" in sealert output:

    $ sealert -a ./short.log
    100% done'generator' object is not subscriptable
    100% done
    found 2 alerts in ./short.log
    ...
2020-01-11 19:28:15 +01:00
Petr Lautrbach 77e7a0320c tests: Few no-plugin-exception-during-analyses improvements
- when first grep fails print journal as well
- check for setroubleshoot-server instead of setroubleshoot
- improve grep assert to match "passwd" and "/usr/bin/passwd"
2020-01-06 16:05:21 +01:00
Petr Lautrbach 0340721f20 tests: Add Regression/no-plugin-exception-during-analyses to CI tests 2020-01-06 09:52:59 +01:00
Petr Lautrbach 8937bc78c8 tests: Report setroubleshoot-server version during no-plugin-exception-during-analyses 2020-01-06 09:49:41 +01:00
Petr Lautrbach 2602b87ed0 tests: Does setroubleshoot report any 'Plugin Exception' during analyses?
This test should cover cases when setroubleshoot reports "Plugin Exception"
during analyses, see https://bugzilla.redhat.com/show_bug.cgi?id=1784564

Example log with the reported problem:
    setroubleshoot[834]: Plugin Exception catchall_labels
    setroubleshoot[834]: Plugin Exception file
    setroubleshoot[834]: Plugin Exception openvpn
2020-01-03 15:57:56 +01:00
Vit Mojzis 7573f5f239 tests: Add Regression/embedded-null-byte-in-audit-records 2019-12-11 16:16:13 +01:00