test(routable): add transit-chain topology + failing routable-prefix tests
Adds an isolated 4-node chain topology (leaf → natlit → natlde → far) to
exercise the planned ROUTABLE_PREFIXES feature. TG 26305 is owned by `far`
(prefix 263) which is unreachable from `leaf` without transit; test_01
asserts forward + return audio delivery and fails until the C++ feature lands.
test_02 asserts that BLACKLIST_TGS=26307 on leaf's uplink vetoes that specific
TG while leaving 26305 unaffected.
Files added/modified:
tests/topology.py — ROUTABLE_REFLECTORS dict + port/secret helpers
tests/generate_configs.py — generate_routable_reflector_conf/docker_compose +
ROUTABLE_PREFIXES/BLACKLIST_TGS emission in
per-peer trunk loop; routable in default run
tests/test_routable.py — new test file (mirrors test_twin.py pattern)
tests/docker-compose.routable.yml — generated chain compose (4 services)
This commit is contained in:
1 parent
c65ab7309f
commit
2e0e501ca5
4 files changed
+589
No files matched your search
@@ -0,0 +1,90 @@
|
||||
services:
|
||||
reflector-far:
|
||||
build:
|
||||
context: ..
|
||||
dockerfile: Dockerfile
|
||||
volumes:
|
||||
- ./configs/reflector-far.conf:/etc/svxlink/svxreflector.conf:ro
|
||||
- pki-routable-far:/var/lib/svxlink/pki
|
||||
ports:
|
||||
- "54300:5300/tcp"
|
||||
- "54300:5300/udp"
|
||||
- "54302:5302/tcp"
|
||||
- "57080:8080/tcp"
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "bash -c '(echo > /dev/tcp/localhost/8080) 2>/dev/null'"]
|
||||
interval: 2s
|
||||
timeout: 2s
|
||||
retries: 15
|
||||
networks:
|
||||
- routable_mesh
|
||||
|
||||
reflector-leaf:
|
||||
build:
|
||||
context: ..
|
||||
dockerfile: Dockerfile
|
||||
volumes:
|
||||
- ./configs/reflector-leaf.conf:/etc/svxlink/svxreflector.conf:ro
|
||||
- pki-routable-leaf:/var/lib/svxlink/pki
|
||||
ports:
|
||||
- "51300:5300/tcp"
|
||||
- "51300:5300/udp"
|
||||
- "51302:5302/tcp"
|
||||
- "54080:8080/tcp"
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "bash -c '(echo > /dev/tcp/localhost/8080) 2>/dev/null'"]
|
||||
interval: 2s
|
||||
timeout: 2s
|
||||
retries: 15
|
||||
networks:
|
||||
- routable_mesh
|
||||
|
||||
reflector-natlde:
|
||||
build:
|
||||
context: ..
|
||||
dockerfile: Dockerfile
|
||||
volumes:
|
||||
- ./configs/reflector-natlde.conf:/etc/svxlink/svxreflector.conf:ro
|
||||
- pki-routable-natlde:/var/lib/svxlink/pki
|
||||
ports:
|
||||
- "53300:5300/tcp"
|
||||
- "53300:5300/udp"
|
||||
- "53302:5302/tcp"
|
||||
- "56080:8080/tcp"
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "bash -c '(echo > /dev/tcp/localhost/8080) 2>/dev/null'"]
|
||||
interval: 2s
|
||||
timeout: 2s
|
||||
retries: 15
|
||||
networks:
|
||||
- routable_mesh
|
||||
|
||||
reflector-natlit:
|
||||
build:
|
||||
context: ..
|
||||
dockerfile: Dockerfile
|
||||
volumes:
|
||||
- ./configs/reflector-natlit.conf:/etc/svxlink/svxreflector.conf:ro
|
||||
- pki-routable-natlit:/var/lib/svxlink/pki
|
||||
ports:
|
||||
- "52300:5300/tcp"
|
||||
- "52300:5300/udp"
|
||||
- "52302:5302/tcp"
|
||||
- "55080:8080/tcp"
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "bash -c '(echo > /dev/tcp/localhost/8080) 2>/dev/null'"]
|
||||
interval: 2s
|
||||
timeout: 2s
|
||||
retries: 15
|
||||
networks:
|
||||
- routable_mesh
|
||||
|
||||
volumes:
|
||||
pki-routable-far:
|
||||
pki-routable-leaf:
|
||||
pki-routable-natlde:
|
||||
pki-routable-natlit:
|
||||
|
||||
networks:
|
||||
routable_mesh:
|
||||
driver: bridge
|
||||
Reference in new issue
Block a user