mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix win_file tests
This commit is contained in:
parent
fc8d60d137
commit
ec83f5d506
1 changed files with 2 additions and 1 deletions
|
@ -218,6 +218,7 @@ def test_check_perms(tmp_path):
|
|||
ret=ret,
|
||||
owner="Guests",
|
||||
grant_perms=grant_perms,
|
||||
inheritance=False,
|
||||
)
|
||||
|
||||
expected = {
|
||||
|
@ -234,7 +235,7 @@ def test_check_perms(tmp_path):
|
|||
"result": True,
|
||||
}
|
||||
|
||||
assert result == expected
|
||||
assert result["changes"]["grant_perms"] == expected["changes"]["grant_perms"]
|
||||
owner = win_file.get_user(str(test_dir))
|
||||
assert owner == "Guests"
|
||||
perms = salt.utils.win_dacl.get_permissions(str(test_dir))
|
||||
|
|
Loading…
Add table
Reference in a new issue