24d8fbd366
- wizard.sh + connect.conf: TUNNEL_LOCAL_SSH_PORT back to 2223 (Synology SSH port) - port-registry: renamed x6340 → x4662 (matches QuickConnect ID) - port-registry: added MR2200ac mesh satellite note for x4662 - deployment checklist: added kit-connect section, post-deployment rules, incident log, and complete fleet port registry table - memory: added fleet-router-inventory.md with full fleet state - hub README: updated with current status and locations Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
21 lines
680 B
Bash
21 lines
680 B
Bash
FIXTURES="$BATS_TEST_DIRNAME/../../tests/fixtures"
|
|
setup() { load '../../package/kit-busrouter/files/usr/lib/busrouter/metrics-net.sh'; }
|
|
|
|
@test "net: zero-jitter no-loss" {
|
|
run _net_parse_ping < "$FIXTURES/ping-ok.txt"
|
|
[ "$status" -eq 0 ]
|
|
[ "$output" = "15.0 0.0 0" ]
|
|
}
|
|
@test "net: jitter and packet loss" {
|
|
run _net_parse_ping < "$FIXTURES/ping-loss.txt"
|
|
[ "$output" = "15.0 5.0 20" ]
|
|
}
|
|
@test "net: 100pct loss gives 0 0 100" {
|
|
run _net_parse_ping < "$FIXTURES/ping-timeout.txt"
|
|
[ "$output" = "0 0 100" ]
|
|
}
|
|
@test "net: partial output defaults loss to 100" {
|
|
run _net_parse_ping < "$FIXTURES/ping-partial.txt"
|
|
[ "$output" = "20.0 0.0 100" ]
|
|
}
|