# shellcheck shell=bash # run-shellcheck test_audit() { describe Running on blank host register_test retvalshouldbe 0 # shellcheck disable=2154 run blank "${CIS_CHECKS_DIR}/${script}.sh" --audit-all describe prepare failing test echo "Defaults !authenticate" >/etc/sudoers.d/sudo_test describe Running on blank host register_test retvalshouldbe 1 # shellcheck disable=2154 run blank "${CIS_CHECKS_DIR}/${script}.sh" --audit-all describe clean test rm -f /etc/sudoers.d/sudo_test }