mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Add regression test for master_event_pub.ipc permissions
This commit is contained in:
parent
411c1f384e
commit
0466043ec6
1 changed files with 9 additions and 0 deletions
9
tests/pytests/integration/master/test_ipc_perms.py
Normal file
9
tests/pytests/integration/master/test_ipc_perms.py
Normal file
|
@ -0,0 +1,9 @@
|
|||
import pathlib
|
||||
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
|
Loading…
Add table
Reference in a new issue