mesh-sdk is pinned to feat/r4d-groups f0f66d5b8d42 (mesh-sdk #58) until it merges.
22 lines
690 B
Go
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)
|
|
}
|
|
}
|