diff options
author | baude <bbaude@redhat.com> | 2018-07-31 09:05:48 -0500 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-08-01 13:01:44 +0000 |
commit | a8ae7eae9c9e545b685abfd1e42a2a63cb547a80 (patch) | |
tree | d7d8077f1c38bfee990cb3ca061c53ff408023dd /test/e2e/run_test.go | |
parent | 1a439f9fcbbc6a2b509c1ca7e23207a07a652399 (diff) | |
download | podman-a8ae7eae9c9e545b685abfd1e42a2a63cb547a80.tar.gz podman-a8ae7eae9c9e545b685abfd1e42a2a63cb547a80.tar.bz2 podman-a8ae7eae9c9e545b685abfd1e42a2a63cb547a80.zip |
Integration Test Improvements #3
Third round of speed improvements to the integration tests.
Signed-off-by: baude <bbaude@redhat.com>
Closes: #1193
Approved by: rhatdan
Diffstat (limited to 'test/e2e/run_test.go')
-rw-r--r-- | test/e2e/run_test.go | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/test/e2e/run_test.go b/test/e2e/run_test.go index 4c328662b..1c86d48bc 100644 --- a/test/e2e/run_test.go +++ b/test/e2e/run_test.go @@ -490,11 +490,12 @@ var _ = Describe("Podman run", func() { }) It("podman run with built-in volume image", func() { - session := podmanTest.Podman([]string{"run", "--rm", "docker.io/library/redis:alpine", "ls"}) + podmanTest.RestoreArtifact(redis) + session := podmanTest.Podman([]string{"run", "--rm", redis, "ls"}) session.WaitWithDefaultTimeout() Expect(session.ExitCode()).To(Equal(0)) - session = podmanTest.Podman([]string{"rmi", "docker.io/library/redis:alpine"}) + session = podmanTest.Podman([]string{"rmi", redis}) session.WaitWithDefaultTimeout() Expect(session.ExitCode()).To(Equal(0)) @@ -524,7 +525,8 @@ USER mail` err = ioutil.WriteFile(volFile, []byte(data), 0755) Expect(err).To(BeNil()) - session := podmanTest.Podman([]string{"create", "--volume", vol + ":/myvol", "docker.io/library/redis:alpine", "sh"}) + podmanTest.RestoreArtifact(redis) + session := podmanTest.Podman([]string{"create", "--volume", vol + ":/myvol", redis, "sh"}) session.WaitWithDefaultTimeout() Expect(session.ExitCode()).To(Equal(0)) ctrID := session.OutputToString() @@ -539,7 +541,8 @@ USER mail` }) It("podman run --volumes-from flag with built-in volumes", func() { - session := podmanTest.Podman([]string{"create", "docker.io/library/redis:alpine", "sh"}) + podmanTest.RestoreArtifact(redis) + session := podmanTest.Podman([]string{"create", redis, "sh"}) session.WaitWithDefaultTimeout() Expect(session.ExitCode()).To(Equal(0)) ctrID := session.OutputToString() |