mesh-self-check: the whole-run integration test answers the setting probes with the probes it asserts, since the default list is D13 and D-fill
This commit is contained in:
@@ -140,6 +140,17 @@ func (p *player) handle(m wire) {
|
||||
keys, err = []string{}, nil
|
||||
}
|
||||
p.answer(m.ID, keys, err)
|
||||
case "mesh/provision.get":
|
||||
// The setting `probes`: this run judges the bus probes it asserts below (D13's facts are not on this bus).
|
||||
var g struct {
|
||||
Kind, Key string
|
||||
}
|
||||
_ = json.Unmarshal(m.Params, &g)
|
||||
if g.Kind == "config" && g.Key == "probes" {
|
||||
p.answer(m.ID, []string{"D2", "D7", "DW", "D15"}, nil)
|
||||
return
|
||||
}
|
||||
p.answer(m.ID, nil, fmt.Errorf("no %s value %s here", g.Kind, g.Key))
|
||||
case "mesh/state.delete":
|
||||
kv, err := p.kv(a.State)
|
||||
if err == nil {
|
||||
|
||||
Reference in New Issue
Block a user