Skip to content

Commit

Permalink
Fix win_file tests
Browse files Browse the repository at this point in the history
  • Loading branch information
twangboy committed Oct 4, 2024
1 parent 8346d74 commit 3fcfab0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/pytests/unit/modules/test_win_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ def test_check_perms(tmp_path):
ret=ret,
owner="Guests",
grant_perms=grant_perms,
inheritance=False,
)

expected = {
Expand All @@ -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))
Expand Down

0 comments on commit 3fcfab0

Please sign in to comment.