mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Add transport layer ipc socket perms test
This commit is contained in:
parent
9ec04e006e
commit
9a6f5e8f48
1 changed files with 5 additions and 2 deletions
|
@ -5,5 +5,8 @@ import stat
|
|||
def test_master_event_pub_ipc_perms(salt_master):
|
||||
pub_path = pathlib.Path(salt_master.config["sock_dir"]) / "master_event_pub.ipc"
|
||||
assert pub_path.exists()
|
||||
assert pub_path.stat().st_mode & stat.S_IRUSR
|
||||
assert pub_path.stat().st_mode & stat.S_IRGRP
|
||||
status = pub_path.stat()
|
||||
assert status.st_mode & stat.S_IRUSR
|
||||
assert status.st_mode & stat.S_IWUSR
|
||||
assert status.st_mode & stat.S_IRGRP
|
||||
assert status.st_mode & stat.S_IWGRP
|
||||
|
|
Loading…
Add table
Reference in a new issue