mirror of
https://github.com/docker/cli.git
synced 2025-09-03 21:22:02 +03:00
This new collection of commands supports initializing a local engine using containerd, updating that engine, and activating the EE product Signed-off-by: Daniel Hiltgen <daniel.hiltgen@docker.com>
22 lines
471 B
Go
22 lines
471 B
Go
package containerized
|
|
|
|
import (
|
|
"context"
|
|
"testing"
|
|
|
|
"github.com/containerd/containerd/containers"
|
|
specs "github.com/opencontainers/runtime-spec/specs-go"
|
|
"gotest.tools/assert"
|
|
)
|
|
|
|
func TestWithAllCapabilities(t *testing.T) {
|
|
c := &containers.Container{}
|
|
s := &specs.Spec{
|
|
Process: &specs.Process{},
|
|
}
|
|
ctx := context.Background()
|
|
err := WithAllCapabilities(ctx, nil, c, s)
|
|
assert.NilError(t, err)
|
|
assert.Assert(t, len(s.Process.Capabilities.Bounding) > 0)
|
|
}
|