Scrub real LAN addresses, MACs and name from docs and test fixtures

This commit is contained in:
neil 2026-11-05 01:29:45 -08:00
parent c9738358de
commit 3d0e4bd153
6 changed files with 20 additions and 20 deletions

View file

@ -73,7 +73,7 @@ pct() {{ echo "pct $*" >> {log}; case $1 in
config) [ "$2" = 100 ] && echo "tags: web"; [ "$2" = 105 ] && printf 'hostname: netmon-hub\\ntags: netmon-hub\\n'; true ;;
status) echo "status: stopped" ;;
push) cp "$3" {pushed} ;;
exec) shift 3; [ "$1" = hostname ] && echo "192.168.68.50 "; true ;;
exec) shift 3; [ "$1" = hostname ] && echo "10.9.8.50 "; true ;;
esac; }}
pvesh() {{ echo "pvesh $*" >> {log}; echo 105; }}
pveam() {{ echo "pveam $*" >> {log}; [ "$1" = available ] && printf "system debian-12-standard_12.7-1_amd64.tar.zst\\nsystem debian-12-standard_12.12-1_amd64.tar.zst\\n"; true; }}
@ -101,7 +101,7 @@ export -f pct pvesh pveam pvesm sleep id
# Native inside, port 80 for the .local name, a locale the container has, one summary.
for part in ("INSTALL_MODE=native", "HOST_PORT=80", "LC_ALL=C.UTF-8", "LANG=C.UTF-8", "NETMON_NESTED=1"):
assert part in inner, part
assert "http://netmon-hub.local (or http://192.168.68.50)" in r.stdout
assert "http://netmon-hub.local (or http://10.9.8.50)" in r.stdout
assert "pct exec 105 -- network-monitor-update" in r.stdout # works because setup.sh links it into /usr/bin
# The pushed script is a complete installer for the same role.
text = pushed.read_text()