Rename secrets to ignore as it does more than secrets
This commit is contained in:
parent
4882ddff49
commit
e4be7f5975
7 changed files with 51 additions and 15 deletions
9
tests/test_ignore.py
Normal file
9
tests/test_ignore.py
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
from enroll.ignore import IgnorePolicy
|
||||
|
||||
|
||||
def test_ignore_policy_denies_common_backup_files():
|
||||
pol = IgnorePolicy()
|
||||
assert pol.deny_reason("/etc/shadow-") == "denied_path"
|
||||
assert pol.deny_reason("/etc/passwd-") == "denied_path"
|
||||
assert pol.deny_reason("/etc/group-") == "denied_path"
|
||||
assert pol.deny_reason("/foobar") == "unreadable"
|
||||
Loading…
Add table
Add a link
Reference in a new issue