summaryrefslogtreecommitdiff
path: root/daemon/exec_linux_test.go
diff options
context:
space:
mode:
authorSebastiaan van Stijn <github@gone.nl>2019-10-13 00:04:44 +0200
committerSebastiaan van Stijn <github@gone.nl>2019-10-13 19:16:12 +0200
commita33cf495f2f0ef0b30b943fc9a7e54ec2aaa4c1e (patch)
treee22860de217e1241cb9dc8604875659b5cc301f1 /daemon/exec_linux_test.go
parentd1e837d2a8d5f82c750c70b2e360b9f103f0273f (diff)
downloaddocker-a33cf495f2f0ef0b30b943fc9a7e54ec2aaa4c1e.tar.gz
daemon: use constants for AppArmor profiles
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Diffstat (limited to 'daemon/exec_linux_test.go')
-rw-r--r--daemon/exec_linux_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/exec_linux_test.go b/daemon/exec_linux_test.go
index 9e2f829eb7..89f2dfb5e5 100644
--- a/daemon/exec_linux_test.go
+++ b/daemon/exec_linux_test.go
@@ -49,5 +49,5 @@ func TestExecSetPlatformOptPrivileged(t *testing.T) {
c.HostConfig = &containertypes.HostConfig{Privileged: true}
err = d.execSetPlatformOpt(c, ec, p)
assert.NilError(t, err)
- assert.Equal(t, "unconfined", p.ApparmorProfile)
+ assert.Equal(t, unconfinedAppArmorProfile, p.ApparmorProfile)
}