Remove some perms checks in conftest.py

Remove checks for perms on /var/log/salt/master and /var/run/salt/master
in the salt_master fixture as they may not existing during an upgrade
test and it's not critical to test them in the fixture.
This commit is contained in:
Barney Sowood 2023-08-07 19:48:12 +01:00 committed by Gareth J. Greenaway
parent b3d2a55535
commit 39b464a58d

View file

@ -354,11 +354,9 @@ def salt_master(salt_factories, install_salt, state_tree, pillar_tree):
)
# verify files were set with correct owner/group
verify_files = [
pathlib.Path("/var", "log", "salt", "master"),
pathlib.Path("/etc", "salt", "pki", "master"),
pathlib.Path("/etc", "salt", "master.d"),
pathlib.Path("/var", "cache", "salt", "master"),
pathlib.Path("/var", "run", "salt", "master"),
]
for _file in verify_files:
assert _file.owner() == "salt"