Files
mesh-host/internal/profile/container_groups_test.go
T
2026-10-21 15:34:37 +02:00

22 lines
690 B
Go

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)
}
}