diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-02-16 09:25:28 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-16 09:25:28 -0500 |
commit | aadb16da383a91489821969247bced2b34d885e7 (patch) | |
tree | b36408622b0f292733342e8a95576b3b0638be88 /test/e2e/pod_create_test.go | |
parent | 3eb2ce34dc4392e1b758732201d5a6dd5033584c (diff) | |
parent | f2f18768a8c705a0a15abe814aaa52640af0b279 (diff) | |
download | podman-aadb16da383a91489821969247bced2b34d885e7.tar.gz podman-aadb16da383a91489821969247bced2b34d885e7.tar.bz2 podman-aadb16da383a91489821969247bced2b34d885e7.zip |
Merge pull request #9380 from baude/podinfra
Fix panic in pod creation
Diffstat (limited to 'test/e2e/pod_create_test.go')
-rw-r--r-- | test/e2e/pod_create_test.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/e2e/pod_create_test.go b/test/e2e/pod_create_test.go index e57712f62..0a7a5101e 100644 --- a/test/e2e/pod_create_test.go +++ b/test/e2e/pod_create_test.go @@ -501,4 +501,18 @@ entrypoint ["/fromimage"] Expect(session.OutputToString()).To(ContainSubstring("inet 127.0.0.1/8 scope host lo")) Expect(len(session.OutputToStringArray())).To(Equal(1)) }) + + It("podman pod create --infra-image w/untagged image", func() { + podmanTest.AddImageToRWStore(ALPINE) + dockerfile := `FROM quay.io/libpod/alpine:latest +ENTRYPOINT ["sleep","99999"] + ` + // This builds a none/none image + iid := podmanTest.BuildImage(dockerfile, "", "true") + + create := podmanTest.Podman([]string{"pod", "create", "--infra-image", iid}) + create.WaitWithDefaultTimeout() + Expect(create.ExitCode()).To(BeZero()) + }) + }) |