summaryrefslogtreecommitdiff
path: root/test/e2e/run_test.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2018-09-28 11:49:42 -0700
committerGitHub <noreply@github.com>2018-09-28 11:49:42 -0700
commit7b152a24be224ee454b3f698cc1c1ed71330a476 (patch)
treefb9fa2cf1e557369428ea9d2fc0f06e8aee97892 /test/e2e/run_test.go
parent77d80228481d1902be0a9ed30622189b54d2e3b0 (diff)
parenta931c441043cfc2f03be1d8b92dc5b31b2d2ca4b (diff)
downloadpodman-7b152a24be224ee454b3f698cc1c1ed71330a476.tar.gz
podman-7b152a24be224ee454b3f698cc1c1ed71330a476.tar.bz2
podman-7b152a24be224ee454b3f698cc1c1ed71330a476.zip
Merge pull request #1551 from baude/complexnames
run complex image names with short names
Diffstat (limited to 'test/e2e/run_test.go')
-rw-r--r--test/e2e/run_test.go22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/e2e/run_test.go b/test/e2e/run_test.go
index 4339e0f5c..777b49cd8 100644
--- a/test/e2e/run_test.go
+++ b/test/e2e/run_test.go
@@ -42,6 +42,28 @@ var _ = Describe("Podman run", func() {
Expect(session.ExitCode()).To(Equal(0))
})
+ It("podman run a container based on a complex local image name", func() {
+ podmanTest.RestoreArtifact(nginx)
+ session := podmanTest.Podman([]string{"run", "baude/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 on a short name with localhost", func() {
+ podmanTest.RestoreArtifact(nginx)
+ tag := podmanTest.Podman([]string{"tag", nginx, "localhost/baude/alpine_nginx:latest"})
+ tag.WaitWithDefaultTimeout()
+
+ rmi := podmanTest.Podman([]string{"rmi", nginx})
+ rmi.WaitWithDefaultTimeout()
+
+ session := podmanTest.Podman([]string{"run", "baude/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()