mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 09:40:20 +00:00
Updated test per reviewer comments
This commit is contained in:
parent
57b02f4973
commit
a75f0a9f41
1 changed files with 2 additions and 4 deletions
|
@ -307,7 +307,7 @@ def test_paths_log_rotation(
|
|||
assert logr_conf_path.exists()
|
||||
|
||||
# force log rotation
|
||||
log_rotate_cmd = f"logrotate -f {str(logr_conf_file)}"
|
||||
log_rotate_cmd = f"logrotate -f {logr_conf_file}"
|
||||
ret = salt_call_cli.run(
|
||||
"--local", "cmd.run", log_rotate_cmd
|
||||
)
|
||||
|
@ -316,9 +316,7 @@ def test_paths_log_rotation(
|
|||
for _path in log_files_list:
|
||||
log_path = pathlib.Path(_path)
|
||||
assert log_path.exists()
|
||||
assert (
|
||||
log_path.owner() == f"{test_account.username}"
|
||||
)
|
||||
assert log_path.owner() == test_account.username
|
||||
assert log_path.stat().st_mode & 0o7777 == 0o640
|
||||
|
||||
# cleanup
|
||||
|
|
Loading…
Add table
Reference in a new issue