mirror of
https://github.com/ovh/debian-cis.git
synced 2025-06-21 18:23:42 +02:00
missing shadowtools backup files is ok (#132)
* missing shadowtools backup files is ok * update corresponding test cases
This commit is contained in:
@ -37,6 +37,12 @@ test_audit() {
|
||||
register_test contain "has correct ownership"
|
||||
run resolved /opt/debian-cis/bin/hardening/"${script}".sh --audit-all
|
||||
|
||||
describe Missing File should be OK as well
|
||||
rm "$test_file"
|
||||
register_test retvalshouldbe 0
|
||||
register_test contain "does not exist"
|
||||
run resolved /opt/debian-cis/bin/hardening/"${script}".sh --audit-all
|
||||
|
||||
# Cleanup
|
||||
userdel "$test_user"
|
||||
}
|
||||
|
@ -37,6 +37,12 @@ test_audit() {
|
||||
register_test contain "has correct ownership"
|
||||
run resolved /opt/debian-cis/bin/hardening/"${script}".sh --audit-all
|
||||
|
||||
describe Missing File should be OK as well
|
||||
rm "$test_file"
|
||||
register_test retvalshouldbe 0
|
||||
register_test contain "does not exist"
|
||||
run resolved /opt/debian-cis/bin/hardening/"${script}".sh --audit-all
|
||||
|
||||
# Cleanup
|
||||
userdel "$test_user"
|
||||
}
|
||||
|
@ -37,6 +37,12 @@ test_audit() {
|
||||
register_test contain "has correct ownership"
|
||||
run resolved /opt/debian-cis/bin/hardening/"${script}".sh --audit-all
|
||||
|
||||
describe Missing File should be OK as well
|
||||
rm "$test_file"
|
||||
register_test retvalshouldbe 0
|
||||
register_test contain "does not exist"
|
||||
run resolved /opt/debian-cis/bin/hardening/"${script}".sh --audit-all
|
||||
|
||||
# Cleanup
|
||||
userdel "$test_user"
|
||||
}
|
||||
|
@ -37,6 +37,12 @@ test_audit() {
|
||||
register_test contain "has correct ownership"
|
||||
run resolved /opt/debian-cis/bin/hardening/"${script}".sh --audit-all
|
||||
|
||||
describe Missing File should be OK as well
|
||||
rm "$test_file"
|
||||
register_test retvalshouldbe 0
|
||||
register_test contain "does not exist"
|
||||
run resolved /opt/debian-cis/bin/hardening/"${script}".sh --audit-all
|
||||
|
||||
# Cleanup
|
||||
userdel "$test_user"
|
||||
}
|
||||
|
Reference in New Issue
Block a user