diff options
Diffstat (limited to 'test/e2e/run_entrypoint_test.go')
-rw-r--r-- | test/e2e/run_entrypoint_test.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/e2e/run_entrypoint_test.go b/test/e2e/run_entrypoint_test.go index 2ae282967..e06f8bb3a 100644 --- a/test/e2e/run_entrypoint_test.go +++ b/test/e2e/run_entrypoint_test.go @@ -28,6 +28,17 @@ var _ = Describe("Podman run entrypoint", func() { }) + It("podman run no command, entrypoint, or cmd", func() { + dockerfile := `FROM docker.io/library/alpine:latest +ENTRYPOINT [] +CMD [] +` + podmanTest.BuildImage(dockerfile, "foobar.com/entrypoint:latest") + session := podmanTest.Podman([]string{"run", "foobar.com/entrypoint:latest"}) + session.WaitWithDefaultTimeout() + Expect(session.ExitCode()).To(Equal(125)) + }) + It("podman run entrypoint", func() { dockerfile := `FROM docker.io/library/alpine:latest ENTRYPOINT ["grep", "Alpine", "/etc/os-release"] |