[Open-scap] [systemdtests-devel branch] [PATCH] Add three new tests for systemdunitproperty probe
Jan Lieskovsky
jlieskov at redhat.com
Fri Jul 11 17:39:43 UTC 2014
Hello folks,
the attached patch adds three new (hopefully common) tests for systemdunitproperty
probe from systemdtests-devel branch.
The added tests are as follows:
* def:2 / tst:3 -- check if there's at least one *.service unit having LoadState equal to 'loaded' or 'not-found'
-- expected test result: true
* def:3 / tst:4 -- check if there's at least one *.service unit having LoadState equal to 'loaded' excluding those
having LoadState equal to 'not-found'
-- expected test result: true
* def:4 / tst:5 -- check if there's at least one *.service unit conflicting the shutdown.target
-- expected test result: true
The tests have been tested on openscap instance supporting the systemd* probes and
seem to be working properly:
$ cat test_probes_systemdunitproperty.log
TEST: systemdunitproperty general functionality
Definition oval:0:def:4: true
Definition oval:0:def:3: true
Definition oval:0:def:2: true
Definition oval:0:def:1: true
Evaluation done.
RESULT: PASSED
Please review.
Thank you && Regards, Jan.
--
Jan iankko Lieskovsky / Red Hat Security Technologies Team
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-three-new-tests-for-systemdunitproperty-probe.patch
Type: text/x-patch
Size: 5219 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/open-scap-list/attachments/20140711/aaba6f25/attachment.bin>
More information about the Open-scap-list
mailing list