docs: surface SATELLITE_FILTER in /status + bump test count to 34

README: add an "Observability" paragraph noting that the active filter
appears under /status.satellites[<id>].filter — and by extension in the
MQTT retained status topic and Redis live📡<id> snapshot,
since those surfaces reserialize the same JSON. Omitted when no filter
is set.

DESIGN_SATELLITE_AND_CLUSTER: add an "Observable state" row to the
TrunkLink vs SatelliteLink comparison table listing the fields in
SatelliteLink::statusJson() including the new filter field.

tests/TESTS.md: bump trunk test count 33 -> 34 and add a row for
test_16c (satellite filter visible in /status).
This commit is contained in:
Audric committed 2026-04-20 15:16:27 +02:00
1 parent a4f0e9522d
commit 962e1ffc10
3 files changed
+10 -2

No files matched your search

+6
View File
@@ -376,6 +376,12 @@ parent also stops forwarding non-matching TGs back. Empty or absent means no
filtering. The filter uses the shared TG-filter syntax (exact, `24*` prefix, filtering. The filter uses the shared TG-filter syntax (exact, `24*` prefix,
`2427-2438` range, comma-separated). `2427-2438` range, comma-separated).
**Observability.** The currently active filter appears under
`/status.satellites[<id>].filter` on the parent — and therefore also in
the retained MQTT `status` topic and the Redis `live:satellite:<id>`
snapshot, since those surfaces reserialize the same JSON. The key is
omitted when no filter is set.
Port `5303` is the default satellite port (separate from client port `5300` and Port `5303` is the default satellite port (separate from client port `5300` and
trunk port `5302`). trunk port `5302`).
+1
View File
@@ -85,6 +85,7 @@ Similar to `TrunkLink` but with different semantics:
| Who initiates | Both sides connect to each other | Satellite connects to parent | | Who initiates | Both sides connect to each other | Satellite connects to parent |
| Audio path | Only prefix-matched + cluster TGs | All TGs active on either side | | Audio path | Only prefix-matched + cluster TGs | All TGs active on either side |
| `CLUSTER_TGS` config needed | Yes, must match on both sides | Not required | | `CLUSTER_TGS` config needed | Yes, must match on both sides | Not required |
| Observable state | `TrunkLink::statusJson` (per-peer) | `SatelliteLink::statusJson` with `id`, `authenticated`, `active_tgs`, and `filter` (when `SATELLITE_FILTER` is active) — same JSON feeds `/status`, MQTT retained status, and Redis |
#### Parent-side changes (`Reflector.cpp`) #### Parent-side changes (`Reflector.cpp`)
+3 -2
View File
@@ -5,7 +5,7 @@
The integration tests verify the trunk protocol, satellite links, twin (HA-pair) protocol, Redis-backed config store, and end-to-end audio routing by spinning up reflector meshes in Docker Compose and connecting fake peers and clients from a Python test harness. The integration tests verify the trunk protocol, satellite links, twin (HA-pair) protocol, Redis-backed config store, and end-to-end audio routing by spinning up reflector meshes in Docker Compose and connecting fake peers and clients from a Python test harness.
`run_tests.sh` runs in **two phases**: `run_tests.sh` runs in **two phases**:
1. A 3-reflector trunk mesh + a satellite-mode reflector exercising `test_trunk.py` (33 tests). 1. A 3-reflector trunk mesh + a satellite-mode reflector exercising `test_trunk.py` (34 tests).
2. A 4-reflector twin topology exercising `test_twin.py` (11 tests). 2. A 4-reflector twin topology exercising `test_twin.py` (11 tests).
A separate harness (`run_redis_tests.sh`) runs `test_redis.py` (13 tests) against a single-reflector + Redis stack. See [Redis Integration Tests](#redis-integration-tests) below. A separate harness (`run_redis_tests.sh`) runs `test_redis.py` (13 tests) against a single-reflector + Redis stack. See [Redis Integration Tests](#redis-integration-tests) below.
@@ -22,7 +22,7 @@ bash run_tests.sh
This will: This will:
1. Generate the default configs and `docker-compose.test.yml` from `topology.py` 1. Generate the default configs and `docker-compose.test.yml` from `topology.py`
2. Build and start the 3-reflector mesh 2. Build and start the 3-reflector mesh
3. Run 33 automated trunk/satellite/MQTT tests (`test_trunk.py`) 3. Run 34 automated trunk/satellite/MQTT tests (`test_trunk.py`)
4. Enter an interactive prompt to manually test any TG number 4. Enter an interactive prompt to manually test any TG number
5. Tear down the default mesh 5. Tear down the default mesh
6. Regenerate with `--topology twin` (4-reflector twin topology) 6. Regenerate with `--topology twin` (4-reflector twin topology)
@@ -173,6 +173,7 @@ Simulates a V2 SvxLink client. Performs the full TCP authentication handshake (P
| 15 | Satellite audio to trunk peer | Satellite sends audio for a TG owned by another reflector; parent forwards via trunk | | 15 | Satellite audio to trunk peer | Satellite sends audio for a TG owned by another reflector; parent forwards via trunk |
| 16 | Satellite disconnect cleanup | Abrupt satellite disconnect clears it from `/status` | | 16 | Satellite disconnect cleanup | Abrupt satellite disconnect clears it from `/status` |
| 16b | Satellite TG filter honored by parent | Satellite sends `MsgTrunkFilter` (type 122) after hello; parent forwards the matching cluster TG but drops the non-matching one | | 16b | Satellite TG filter honored by parent | Satellite sends `MsgTrunkFilter` (type 122) after hello; parent forwards the matching cluster TG but drops the non-matching one |
| 16c | Satellite filter visible in `/status` | Active filter surfaces as `satellites[<id>].filter`; key absent when unset, appears after send, clears after empty filter |
### Bidirectional Routing ### Bidirectional Routing