Test: verify trunk filter reload via Redis pub/sub
Add [TRUNK_TEST] placeholder trunk section to the Redis test topology so TrunkLink::reloadConfig() is instantiated. Add RedisTrunkFilterTest with two tests that SADD/SREM blacklist and allow entries, publish config.changed, and assert the expected 'Reloaded filters' log line appears in container stdout within 3 s.
This commit is contained in:
1 parent
363648ae43
commit
ce305e957e
3 files changed
+88
No files matched your search
@@ -20,6 +20,17 @@ TEST_CLIENTS = [
|
||||
{"callsign": "N0OTHER", "group": "OtherGroup", "password": "otherpass"},
|
||||
]
|
||||
|
||||
# Placeholder trunk peer — no real peer is running, but its [TRUNK_TEST]
|
||||
# section makes the reflector instantiate a TrunkLink whose reloadConfig()
|
||||
# we can trigger via pub/sub and verify via container logs.
|
||||
TRUNK_TEST = {
|
||||
"section": "TRUNK_TEST",
|
||||
"host": "192.0.2.1", # TEST-NET-1 — guaranteed unroutable
|
||||
"port": 59302,
|
||||
"secret": "test_secret",
|
||||
"remote_prefix": "9",
|
||||
}
|
||||
|
||||
# Internal container ports (same as legacy harness so the reflector
|
||||
# binary's defaults don't change).
|
||||
INTERNAL_CLIENT_PORT = 5300
|
||||
|
||||
Reference in new issue
Block a user