package profile import ( "context" "testing" "time" ) // 1637/AC3: the node's report carries the capability that says the node-engine reads a container's groups. func TestTheProfileSaysTheNodeEngineReadsContainerGroups(t *testing.T) { got := Detect(context.Background(), Default(func(context.Context, string, ...string) (string, error) { return "", nil }), time.Second) v := verdictOf(t, got, CapContainerGroups) if !v.Present || v.Detail == "" || v.How == "" { t.Errorf("1637/AC3: container-groups = %+v, want present with a detail and a method", v) } if CapContainerGroups != "container-groups" { t.Errorf("1637/AC3: the capability is named %q", CapContainerGroups) } }