diff options
author | Matthew Heon <matthew.heon@pm.me> | 2019-08-07 09:50:11 -0400 |
---|---|---|
committer | Matthew Heon <matthew.heon@pm.me> | 2019-08-07 11:49:34 -0400 |
commit | 8d44c61f27a3ffcd288895a705adb740ccb02cbd (patch) | |
tree | f88e8cab2a35e51f1805c963e1233abb4b0b5042 /test/e2e | |
parent | 28b545d04c41d1595a4f162e00b4fecdb090a750 (diff) | |
download | podman-8d44c61f27a3ffcd288895a705adb740ccb02cbd.tar.gz podman-8d44c61f27a3ffcd288895a705adb740ccb02cbd.tar.bz2 podman-8d44c61f27a3ffcd288895a705adb740ccb02cbd.zip |
Add a test for verifying ENTRYPOINT and CMD
Signed-off-by: Matthew Heon <matthew.heon@pm.me>
Diffstat (limited to 'test/e2e')
-rw-r--r-- | test/e2e/create_test.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/e2e/create_test.go b/test/e2e/create_test.go index e2b4a7cf4..25d0c3390 100644 --- a/test/e2e/create_test.go +++ b/test/e2e/create_test.go @@ -218,4 +218,17 @@ var _ = Describe("Podman create", func() { match, _ := check.GrepString("foobar") Expect(match).To(BeTrue()) }) + + It("podman run entrypoint and cmd test", func() { + name := "test101" + create := podmanTest.Podman([]string{"create", "--name", name, redis}) + create.WaitWithDefaultTimeout() + Expect(create.ExitCode()).To(Equal(0)) + + ctrJSON := podmanTest.InspectContainer(name) + Expect(len(ctrJSON)).To(Equal(1)) + Expect(len(ctrJSON[0].Config.Cmd)).To(Equal(1)) + Expect(ctrJSON[0].Config.Cmd[0]).To(Equal("redis-server")) + Expect(ctrJSON[0].Config.Entrypoint).To(Equal("docker-entrypoint.sh")) + }) }) |