Many tweaks
This commit is contained in:
parent
5398ad123c
commit
227be6dd51
20 changed files with 1350 additions and 174 deletions
8
tests/test_secrets.py
Normal file
8
tests/test_secrets.py
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
from enroll.secrets import SecretPolicy
|
||||
|
||||
|
||||
def test_secret_policy_denies_common_backup_files():
|
||||
pol = SecretPolicy()
|
||||
assert pol.deny_reason("/etc/shadow-") == "denied_path"
|
||||
assert pol.deny_reason("/etc/passwd-") == "denied_path"
|
||||
assert pol.deny_reason("/etc/group-") == "denied_path"
|
||||
Loading…
Add table
Add a link
Reference in a new issue