summaryrefslogtreecommitdiff
path: root/test/e2e/run_test.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-03-03 07:12:12 -0800
committerGitHub <noreply@github.com>2019-03-03 07:12:12 -0800
commitf3a3d8e28e4b8ec06dd11ec156c10e243165f19d (patch)
tree716b5088d5f97ee85dc0adf19e43622044a41b5d /test/e2e/run_test.go
parent9adcda73892fa0a33cbdf971ad97cf079e8e425f (diff)
parentd231cfba92ef440404f936a2cb0a64503b9c8c46 (diff)
downloadpodman-f3a3d8e28e4b8ec06dd11ec156c10e243165f19d.tar.gz
podman-f3a3d8e28e4b8ec06dd11ec156c10e243165f19d.tar.bz2
podman-f3a3d8e28e4b8ec06dd11ec156c10e243165f19d.zip
Merge pull request #2477 from rhatdan/test
Add tests to make sure podman container and podman image commands work
Diffstat (limited to 'test/e2e/run_test.go')
-rw-r--r--test/e2e/run_test.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/e2e/run_test.go b/test/e2e/run_test.go
index 93ee5036f..4ba32a94a 100644
--- a/test/e2e/run_test.go
+++ b/test/e2e/run_test.go
@@ -68,6 +68,20 @@ var _ = Describe("Podman run", func() {
Expect(session.ExitCode()).To(Equal(0))
})
+ It("podman container run a container based on on a short name with localhost", func() {
+ podmanTest.RestoreArtifact(nginx)
+ tag := podmanTest.Podman([]string{"image", "tag", nginx, "localhost/libpod/alpine_nginx:latest"})
+ tag.WaitWithDefaultTimeout()
+
+ rmi := podmanTest.Podman([]string{"image", "rm", nginx})
+ rmi.WaitWithDefaultTimeout()
+
+ session := podmanTest.Podman([]string{"container", "run", "libpod/alpine_nginx:latest", "ls"})
+ session.WaitWithDefaultTimeout()
+ Expect(session.ErrorToString()).ToNot(ContainSubstring("Trying to pull"))
+ Expect(session.ExitCode()).To(Equal(0))
+ })
+
It("podman run a container based on local image with short options", func() {
session := podmanTest.Podman([]string{"run", "-dt", ALPINE, "ls"})
session.WaitWithDefaultTimeout()