Skip to content

Commit 729bcf5

Browse files
adapt unittest to new verbosity features
1 parent 81aaf29 commit 729bcf5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/API/XCCDF/applicability/test_remediate_fix_notapplicable.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ assert_exists 1 '//TestResult[@id="xccdf_org.open-scap_testresult_default-profil
2727
assert_exists 1 '//TestResult[@id="xccdf_org.open-scap_testresult_default-profile001"]/rule-result/result'
2828
assert_exists 1 '//TestResult[@id="xccdf_org.open-scap_testresult_default-profile001"]/rule-result/result[text()="fail"]'
2929
assert_exists 0 '//TestResult[@id="xccdf_org.open-scap_testresult_default-profile001"]/rule-result/fix'
30-
assert_exists 0 '//TestResult[@id="xccdf_org.open-scap_testresult_default-profile001"]/rule-result/message'
30+
31+
# one message expected signalling no suitable fix found.
32+
assert_exists 1 '//TestResult[@id="xccdf_org.open-scap_testresult_default-profile001"]/rule-result/message'
3133

3234
#
3335
# Second, make sure that the fix is applied, when CPE is recognized as appplicable

0 commit comments

Comments
 (0)