networkmanager: the watcher's health is its unit's state
The sign-in process is judged by its unit being active, on the machine without the bus, and NetworkManager's service keeps no state and no health again. The watcher exits non-zero when it cannot subscribe once the system bus came back, so its unit shows failing; uplink_health stays a tool that reads and no longer gives the names again. Builds: design 08 sign-in-page §11, §13, §14, §23, §24, §25, §27; lead answer C-2c (hq 6752a5cf)
This commit is contained in:
@@ -49,8 +49,8 @@ func runTool(t *testing.T, b *bundle, name string) any {
|
||||
}
|
||||
|
||||
// The health tool is unhealthy while the watcher's socket does not answer, while the watcher is not subscribed and
|
||||
// while the last uplink-names call stands failed, naming which; no holder is healthy. Where a holder runs and its
|
||||
// routes no longer hold the names last given, the look gives them again (design 08 sign-in-page §13, §23, §25).
|
||||
// while the last uplink-names call stands failed, naming which; no holder is healthy. It is a tool that reads and calls
|
||||
// nothing on the bus: the names are not given again at a look (design 08 sign-in-page §13, §23, §25; C-2c).
|
||||
func TestTheHealthToolSaysWhatIsWrong(t *testing.T) {
|
||||
journalLines(t)
|
||||
for _, c := range []struct {
|
||||
@@ -97,8 +97,8 @@ func TestTheHealthToolSaysWhatIsWrong(t *testing.T) {
|
||||
b, _ := aToolBundle(t, mesh, &subscribed, &asked)
|
||||
b.folder.writeCheckAddress("http://check.example.net/")
|
||||
b.names.give("the bundle's start")
|
||||
if got := runTool(t, b, "uplink_health").(health.Answer); !got.Healthy || len(mesh.called()) != 2 {
|
||||
t.Fatalf("the look did not give the missing names again: %+v, %d calls", got, len(mesh.called()))
|
||||
if got := runTool(t, b, "uplink_health").(health.Answer); !got.Healthy || len(mesh.called()) != 1 {
|
||||
t.Fatalf("the health tool answered %+v and called uplink-names %d times", got, len(mesh.called()))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user