test(routable): clarify return-path docs; drop dead test scaffolding
Document both forward and return legs of the 263xx transit chain in topology.py ROUTABLE_REFLECTORS comment block, making clear that natlde's routable entry toward natlit is the return-path hop and that the natlit→leaf final hop is carried by peer-interest (not a routable entry). Add inline note on natlde's entry. Drop ROUTABLE_NAMES from topology.py (dead — test files define their own sorted() locals, matching the REFLECTOR_NAMES/TWIN_NAMES convention). Remove duplicate sys.path.insert and unused COMPOSE_FILE/TESTS_DIR constants from test_routable.py. Add clarifying comment above the per-peer routable/blacklist injection in generate_configs.py. Generated configs are byte-identical; no topology routing changes.
This commit is contained in:
1 parent
2e0e501ca5
commit
46979c1f8b
3 files changed
+28
-11
No files matched your search
@@ -33,7 +33,8 @@ from urllib.request import urlopen
|
||||
from urllib.error import URLError
|
||||
import json
|
||||
|
||||
# Reuse the V2 mock client and wire helpers from test_trunk.py
|
||||
# Reuse the V2 mock client and wire helpers from test_trunk.py.
|
||||
# Also ensures tests/ is on the path for topology import below.
|
||||
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
|
||||
from test_trunk import ( # noqa: E402
|
||||
ClientPeer, UDP_AUDIO, UDP_FLUSH,
|
||||
@@ -41,8 +42,6 @@ from test_trunk import ( # noqa: E402
|
||||
CLIENT2_CALLSIGN, CLIENT2_PASSWORD,
|
||||
)
|
||||
|
||||
# Ensure tests/ is on the path so topology can be imported
|
||||
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
|
||||
import topology as T
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
@@ -53,9 +52,6 @@ HOST = "127.0.0.1"
|
||||
|
||||
ROUTABLE_NAMES = sorted(T.ROUTABLE_REFLECTORS)
|
||||
|
||||
COMPOSE_FILE = "docker-compose.routable.yml"
|
||||
TESTS_DIR = os.path.dirname(os.path.abspath(__file__))
|
||||
|
||||
|
||||
def _http(name: str):
|
||||
return (HOST, T.routable_mapped_http_port(name))
|
||||
|
||||
Reference in new issue
Block a user