systemd-resolved: answer with the generated contract's own types (review r1 C-6, C-8)
C-6: import noderesolver (mesh-networking's seat definition) at the zero version; routes, route, unroute and uplink-names answer with its RoutesAnswer, RouteAnswer, UnrouteAnswer and UplinkNamesAnswer, never a map or a parallel struct, and uplink-names' input names is a JSON array (arrayArg), never a comma- or space-split string. C-8: the names file write's 15 s is the stated constant WriteUplinkNamesBound, not an inline literal. Builds: design 08 sign-in-page §2, §5, §6, §9, DQ-12, C-6, C-8
This commit is contained in:
@@ -202,7 +202,7 @@ func TestUplinkNamesWritesTheFileAndAnswersThem(t *testing.T) {
|
||||
if strings.Join(got.Names, " ") != "check.example check2.example" {
|
||||
t.Errorf("the answer names %v", got.Names)
|
||||
}
|
||||
if got.SetAt.IsZero() {
|
||||
if got.SetAt == "" {
|
||||
t.Error("set_at was not stamped")
|
||||
}
|
||||
raw, err := os.ReadFile(r.UplinkNamesFile)
|
||||
|
||||
Reference in New Issue
Block a user