IMP: dismiss for count some tests on blank host

This commit is contained in:
Thibault Ayanides 2020-11-05 12:06:14 +01:00
parent a7afb1099a
commit 67649ec407
4 changed files with 4 additions and 3 deletions

View File

@ -4,7 +4,7 @@ test_audit() {
describe Running on blank host describe Running on blank host
register_test retvalshouldbe 1 register_test retvalshouldbe 1
register_test contain "None of the following time sync packages are installed" dismiss_count_for_test
run blank /opt/debian-cis/bin/hardening/"${script}".sh --audit-all run blank /opt/debian-cis/bin/hardening/"${script}".sh --audit-all
describe Correcting situation describe Correcting situation

View File

@ -8,7 +8,7 @@ test_audit() {
describe Running on blank host describe Running on blank host
register_test retvalshouldbe 0 register_test retvalshouldbe 0
register_test contain "No unknown suid files found" dismiss_count_for_test
run blank /opt/debian-cis/bin/hardening/"${script}".sh --audit-all run blank /opt/debian-cis/bin/hardening/"${script}".sh --audit-all
describe Tests purposely failing describe Tests purposely failing

View File

@ -8,7 +8,7 @@ test_audit() {
describe Running on blank host describe Running on blank host
register_test retvalshouldbe 0 register_test retvalshouldbe 0
register_test contain "No unknown sgid files found" dismiss_count_for_test
# shellcheck disable=2154 # shellcheck disable=2154
run blank /opt/debian-cis/bin/hardening/"${script}".sh --audit-all run blank /opt/debian-cis/bin/hardening/"${script}".sh --audit-all

View File

@ -2,6 +2,7 @@
test_audit() { test_audit() {
describe Running on blank host describe Running on blank host
register_test retvalshouldbe 0 register_test retvalshouldbe 0
dismiss_count_for_test
register_test contain "There is no carte-blanche sudo permission in" register_test contain "There is no carte-blanche sudo permission in"
# shellcheck disable=2154 # shellcheck disable=2154
run blank /opt/debian-cis/bin/hardening/"${script}".sh --audit-all run blank /opt/debian-cis/bin/hardening/"${script}".sh --audit-all