summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-03-08 13:16:38 -0800
committerGitHub <noreply@github.com>2019-03-08 13:16:38 -0800
commitf4787aeeb4936b112d60509173372f9e05f2a7e0 (patch)
tree166f25505aa440aae81fce33ad753e619ced99fe /test
parent008aaf7468bf6987a5b6c0b9eb63cf9a2972f7d1 (diff)
parentdff224a2052b2d7790fd5bba8dff84c79969cf65 (diff)
downloadpodman-f4787aeeb4936b112d60509173372f9e05f2a7e0.tar.gz
podman-f4787aeeb4936b112d60509173372f9e05f2a7e0.tar.bz2
podman-f4787aeeb4936b112d60509173372f9e05f2a7e0.zip
Merge pull request #2590 from haircommander/pause_entry_cmd
Default to image entrypoint for infra container
Diffstat (limited to 'test')
-rw-r--r--test/e2e/pod_infra_container_test.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/e2e/pod_infra_container_test.go b/test/e2e/pod_infra_container_test.go
index 99197dc39..82f35999c 100644
--- a/test/e2e/pod_infra_container_test.go
+++ b/test/e2e/pod_infra_container_test.go
@@ -69,6 +69,18 @@ var _ = Describe("Podman pod create", func() {
Expect(len(check.OutputToStringArray())).To(Equal(1))
})
+ It("podman start infra container different image", func() {
+ session := podmanTest.Podman([]string{"pod", "create", "--infra-image", BB})
+ session.WaitWithDefaultTimeout()
+ Expect(session.ExitCode()).To(Equal(0))
+ podID := session.OutputToString()
+
+ session = podmanTest.Podman([]string{"pod", "start", podID})
+ session.WaitWithDefaultTimeout()
+ // If we use the default entry point, we should exit with no error
+ Expect(session.ExitCode()).To(Equal(0))
+ })
+
It("podman infra container namespaces", func() {
session := podmanTest.Podman([]string{"pod", "create"})
session.WaitWithDefaultTimeout()