Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix test: tests/pytests/functional/states/file/test__check_directory_win.py #67163

Conversation

barneysowood
Copy link
Contributor

What does this PR do?

What issues does this PR fix or reference?

Fixes tests in tests/pytests/functional/states/file/test__check_directory_win.py
see #67140

Changes temp_path fixture to assert that directory is owned by the Administrators group, not the current user

Previous Behavior

Failing with

ERROR tests/pytests/functional/states/file/test__check_directory_win.py::test__check_directory_win_owner - AssertionError: assert 'Administrators' == 'runneradmin'
  
  - runneradmin
  + Administrators

New Behavior

Now passing..

Fixes an incorrect assertion in the temp_dir fixture. The owner of the
the tmp_path is the Administrators group, it is never going to be the
current user.
@barneysowood
Copy link
Contributor Author

Those are now passing - https://github.com/saltstack/salt/actions/runs/12815637481/job/35736033652

@twangboy - if you could take a look and see if you're happy with this fix, that'd be great

@barneysowood
Copy link
Contributor Author

superseded by #67165. Closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant