Add test for issue 65231

This commit is contained in:
Barney Sowood 2023-10-12 19:52:43 +01:00 committed by Pedro Algarvio
parent 59f731c94f
commit 1dad8745de

View file

@ -32,3 +32,12 @@ def test_logrotate_config(logrotate_config_file):
assert logrotate_config_file.is_file()
assert logrotate_config_file.owner() == "root"
assert logrotate_config_file.group() == "root"
def test_issue_65231_etc_logrotate_salt_dir_removed():
"""
Test that /etc/logrotate.d/salt is not a directory
"""
path = Path("/etc/logrotate.d/salt")
if path.exists():
assert path.is_dir() is False