aboutsummaryrefslogtreecommitdiff
path: root/cmd/podman/spec_test.go
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2018-02-02 19:42:48 +0000
committerGitHub <noreply@github.com>2018-02-02 19:42:48 +0000
commita01f708df5d378af6ff4e804464b34f7c9be2b5d (patch)
tree0d2bd143a3d539600de773b55caaea93da4b758e /cmd/podman/spec_test.go
parentd0eb1e0ed65fc9585c1b1a1378d747f79060fcb3 (diff)
parent21482ad1a861148ae994e0b12e6ecf82da97f4be (diff)
downloadpodman-a01f708df5d378af6ff4e804464b34f7c9be2b5d.tar.gz
podman-a01f708df5d378af6ff4e804464b34f7c9be2b5d.tar.bz2
podman-a01f708df5d378af6ff4e804464b34f7c9be2b5d.zip
Merge pull request #282 from randomvariable/fix/sandbox
Set default configuration container type annotation to sandbox
Diffstat (limited to 'cmd/podman/spec_test.go')
-rw-r--r--cmd/podman/spec_test.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/cmd/podman/spec_test.go b/cmd/podman/spec_test.go
index 586c09656..768b079aa 100644
--- a/cmd/podman/spec_test.go
+++ b/cmd/podman/spec_test.go
@@ -23,6 +23,12 @@ func TestCreateConfig_GetVolumeMounts(t *testing.T) {
assert.True(t, reflect.DeepEqual(data, specMount[0]))
}
+func TestCreateConfig_GetAnnotations(t *testing.T) {
+ config := createConfig{}
+ annotations := config.GetAnnotations()
+ assert.True(t, reflect.DeepEqual("sandbox", annotations["io.kubernetes.cri-o.ContainerType"]))
+}
+
func TestCreateConfig_GetTmpfsMounts(t *testing.T) {
data := spec.Mount{
Destination: "/homer",