mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Add const for "unconfined" and default seccomp profiles
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
5e498e20f7
commit
ee02257553
6 changed files with 16 additions and 6 deletions
|
@ -7,6 +7,7 @@ import (
|
|||
"testing"
|
||||
|
||||
"github.com/docker/docker/client"
|
||||
"github.com/docker/docker/daemon/config"
|
||||
"gotest.tools/v3/assert"
|
||||
is "gotest.tools/v3/assert/cmp"
|
||||
)
|
||||
|
@ -27,6 +28,6 @@ func (s *DockerSuite) TestInfoSecurityOptions(c *testing.T) {
|
|||
assert.Check(c, is.Contains(info.SecurityOptions, "name=apparmor"))
|
||||
}
|
||||
if seccompEnabled() {
|
||||
assert.Check(c, is.Contains(info.SecurityOptions, "name=seccomp,profile=default"))
|
||||
assert.Check(c, is.Contains(info.SecurityOptions, "name=seccomp,profile="+config.SeccompProfileDefault))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue