mirror of
https://github.com/n0mjs710/dmrlink3
synced 2026-11-08 12:26:30 +00:00
Two independent gaps in test infrastructure:
1. helpers.make_config() was missing GLOBAL.SUB_ACL and
helpers.make_system() was missing LOCAL.REG_ACL.
In production, process_acls() populates both at startup; the test
helpers never called it. Added PERMIT:ALL defaults matching what
acl_build('PERMIT:ALL', ID_MAX/PEER_MAX) returns.
2. BridgeBase.setUp set bridge.BRIDGES but never called index_bridges()
to populate BRIDGE_SRC_INDEX / BRIDGE_BY_SYSTEM. The routing loop
iterates those indexes (not BRIDGES directly), so all forwarding tests
silently found nothing to forward. Added a _set_bridges() helper that
sets BRIDGES and rebuilds the indexes atomically; updated every
callsite that was assigning bridge.BRIDGES directly. TestCallBoundary
now saves/restores the indexes alongside BRIDGES.
Also removed the _PERMIT_ALL workaround from test_trunk_status.py now
that make_config() supplies SUB_ACL by default.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>