mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Remove group test for files
Removes group test for ownership on files by the salt user. Files that are created by the salt-master process can be owned by salt:root, rather than salt:salt and that's valid
This commit is contained in:
parent
b6661011d2
commit
94adcd1b2c
1 changed files with 2 additions and 3 deletions
|
@ -145,20 +145,19 @@ def test_pkg_paths(install_salt, pkg_paths, pkg_paths_salt_user):
|
|||
salt_user_subdirs.extend(
|
||||
[str(path.joinpath(sub_dir)) for sub_dir in sub_dirs]
|
||||
)
|
||||
# Individual files owned by salt user
|
||||
for file in files:
|
||||
file_path = path.joinpath(file)
|
||||
assert file_path.owner() == "salt"
|
||||
assert file_path.group() == "salt"
|
||||
# Directories owned by root:root
|
||||
else:
|
||||
assert path.owner() == "root"
|
||||
assert path.group() == "root"
|
||||
for file in files:
|
||||
file_path = path.joinpath(file)
|
||||
# Individual files owned by salt:salt
|
||||
# Individual files owned by salt user
|
||||
if str(file_path) in pkg_paths_salt_user:
|
||||
assert file_path.owner() == "salt"
|
||||
assert file_path.group() == "salt"
|
||||
else:
|
||||
assert file_path.owner() == "root"
|
||||
assert file_path.group() == "root"
|
||||
|
|
Loading…
Add table
Reference in a new issue