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
@@ -31,6 +31,12 @@ def generate_reflector_conf(name: str) -> str:
|
||||
f"DB={T.redis_db_index(name)}",
|
||||
f"KEY_PREFIX={T.service_name(name)}",
|
||||
"",
|
||||
f"[{T.TRUNK_TEST['section']}]",
|
||||
f"HOST={T.TRUNK_TEST['host']}",
|
||||
f"PORT={T.TRUNK_TEST['port']}",
|
||||
f"SECRET={T.TRUNK_TEST['secret']}",
|
||||
f"REMOTE_PREFIX={T.TRUNK_TEST['remote_prefix']}",
|
||||
"",
|
||||
]
|
||||
return "\n".join(lines)
|
||||
|
||||
|
||||
Reference in new issue
Block a user