Skip to content

Commit

Permalink
Add regression test for master_event_pub.ipc permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
dwoz committed Aug 13, 2024
1 parent f54a181 commit 8820ae7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/pytests/integration/master/test_ipc_perms.py
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 8820ae7

Please sign in to comment.