Add unit tests for _beacons and wire into CI

Add 100%-coverage unit tests for the three custom salt beacons
(postgres_pillar_beacon, rules_beacon, zeek) and add salt/_beacons to
the python-test workflow's paths trigger and matrix.

To pass the workflow's flake8 lint over the whole directory:
- zeek.py: reindent to 4 spaces, drop trailing blank line, noqa the
  Salt-injected __salt__ references (F821); no logic change.
- postgres_pillar_beacon.py: noqa C901 on beacon() (complexity 13 > 12).
This commit is contained in:
Josh Patterson
2026-07-16 15:28:22 -04:00
parent 8a16ead33d
commit 9e7e6edae0
6 changed files with 417 additions and 21 deletions
+1 -1
View File
@@ -83,7 +83,7 @@ def _query(sql):
return result.stdout
def beacon(config):
def beacon(config): # noqa: C901
retval = []
watermark = _read_watermark()