summaryrefslogtreecommitdiff
path: root/test/e2e/create_test.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-04-08 12:40:23 -0400
committerGitHub <noreply@github.com>2022-04-08 12:40:23 -0400
commit343778f61ac38f0597cfbad38ace644035340f22 (patch)
tree0966f4a85c2d0ae975c5783051ca237f863c2408 /test/e2e/create_test.go
parentcdbc33112ef6407db1292f0a40778e6ac1d8996e (diff)
parent0cebd158b6d8da1828b1255982e27fe9224310d0 (diff)
downloadpodman-343778f61ac38f0597cfbad38ace644035340f22.tar.gz
podman-343778f61ac38f0597cfbad38ace644035340f22.tar.bz2
podman-343778f61ac38f0597cfbad38ace644035340f22.zip
Merge pull request #13811 from flouthoc/container_inspect_entrypoint
container,inspect: convert `Entrypoint` to an array instead of a string
Diffstat (limited to 'test/e2e/create_test.go')
-rw-r--r--test/e2e/create_test.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/e2e/create_test.go b/test/e2e/create_test.go
index 4c3b5604a..11f8b5abf 100644
--- a/test/e2e/create_test.go
+++ b/test/e2e/create_test.go
@@ -118,7 +118,7 @@ var _ = Describe("Podman create", func() {
result := podmanTest.Podman([]string{"inspect", "entrypoint_test", "--format", "{{.Config.Entrypoint}}"})
result.WaitWithDefaultTimeout()
Expect(result).Should(Exit(0))
- Expect(result.OutputToString()).To(Equal("/bin/foobar"))
+ Expect(result.OutputToString()).To(Equal("[/bin/foobar]"))
})
It("podman create --entrypoint \"\"", func() {
@@ -130,7 +130,7 @@ var _ = Describe("Podman create", func() {
result := podmanTest.Podman([]string{"inspect", session.OutputToString(), "--format", "{{.Config.Entrypoint}}"})
result.WaitWithDefaultTimeout()
Expect(result).Should(Exit(0))
- Expect(result.OutputToString()).To(Equal(""))
+ Expect(result.OutputToString()).To(Equal("[]"))
})
It("podman create --entrypoint json", func() {
@@ -143,7 +143,7 @@ var _ = Describe("Podman create", func() {
result := podmanTest.Podman([]string{"inspect", "entrypoint_json", "--format", "{{.Config.Entrypoint}}"})
result.WaitWithDefaultTimeout()
Expect(result).Should(Exit(0))
- Expect(result.OutputToString()).To(Equal("/bin/foo -c"))
+ Expect(result.OutputToString()).To(Equal("[/bin/foo -c]"))
})
It("podman create --mount flag with multiple mounts", func() {
@@ -281,7 +281,8 @@ var _ = Describe("Podman create", func() {
Expect(ctrJSON).To(HaveLen(1))
Expect(ctrJSON[0].Config.Cmd).To(HaveLen(1))
Expect(ctrJSON[0].Config.Cmd[0]).To(Equal("redis-server"))
- Expect(ctrJSON[0].Config.Entrypoint).To(Equal("docker-entrypoint.sh"))
+ Expect(ctrJSON[0].Config.Entrypoint).To(HaveLen(1))
+ Expect(ctrJSON[0].Config.Entrypoint[0]).To(Equal("docker-entrypoint.sh"))
})
It("podman create --pull", func() {