M2 networkmanager: the watcher hears the rating

uplink-tools watch hears the network manager's PropertiesChanged on the system bus,
keeps sign-in-asked and sign-in-ended as the rules say, at most 256 of them, and
subscribes again when the system bus's socket comes back or on rating-again; nothing
reads the rating on a timer.

Builds: design 08 sign-in-page §12, §14, §20, §21, §22
This commit is contained in:
jochen
2026-11-24 21:12:25 +01:00
parent 98b73461e5
commit dc59860541
7 changed files with 954 additions and 10 deletions
@@ -16,3 +16,10 @@ func TestNmcliIsReadPerDevice(t *testing.T) {
t.Fatal("a link with no names was said")
}
}
// networkmanager's own part: the watcher's subcommand (design 08 sign-in-page §11).
func TestNetworkManagerRunsItsWatcherAsASubcommand(t *testing.T) {
if run, err := command(holder(Machine{}), []string{"watch"}); err != nil || run == nil {
t.Fatalf("uplink-tools watch is not the watcher: %v", err)
}
}