mirror of
https://github.com/containers/podman.git
synced 2025-12-16 20:47:47 +08:00
e2e: pull_test: remove redundant tests
Once upon a time, the tests actually pulled from Docker Hub. This has changed with the rate limits, so we can safely remove the redundant tests to speed up CI. Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
This commit is contained in:
@@ -53,13 +53,13 @@ var _ = Describe("Podman pull", func() {
|
|||||||
Expect(session).Should(Exit(0))
|
Expect(session).Should(Exit(0))
|
||||||
})
|
})
|
||||||
|
|
||||||
It("podman pull from docker a not existing image", func() {
|
It("podman pull bogus image", func() {
|
||||||
session := podmanTest.Podman([]string{"pull", "ibetthisdoesntexistthere:foo"})
|
session := podmanTest.Podman([]string{"pull", "quay.io/ibetthis/doesntexistthere:foo"})
|
||||||
session.WaitWithDefaultTimeout()
|
session.WaitWithDefaultTimeout()
|
||||||
Expect(session).To(ExitWithError())
|
Expect(session).To(ExitWithError())
|
||||||
})
|
})
|
||||||
|
|
||||||
It("podman pull from docker with tag", func() {
|
It("podman pull with tag", func() {
|
||||||
session := podmanTest.Podman([]string{"pull", "quay.io/libpod/testdigest_v2s2:20200210"})
|
session := podmanTest.Podman([]string{"pull", "quay.io/libpod/testdigest_v2s2:20200210"})
|
||||||
session.WaitWithDefaultTimeout()
|
session.WaitWithDefaultTimeout()
|
||||||
Expect(session).Should(Exit(0))
|
Expect(session).Should(Exit(0))
|
||||||
@@ -69,7 +69,7 @@ var _ = Describe("Podman pull", func() {
|
|||||||
Expect(session).Should(Exit(0))
|
Expect(session).Should(Exit(0))
|
||||||
})
|
})
|
||||||
|
|
||||||
It("podman pull from docker without tag", func() {
|
It("podman pull without tag", func() {
|
||||||
session := podmanTest.Podman([]string{"pull", "quay.io/libpod/testdigest_v2s2"})
|
session := podmanTest.Podman([]string{"pull", "quay.io/libpod/testdigest_v2s2"})
|
||||||
session.WaitWithDefaultTimeout()
|
session.WaitWithDefaultTimeout()
|
||||||
Expect(session).Should(Exit(0))
|
Expect(session).Should(Exit(0))
|
||||||
@@ -79,26 +79,6 @@ var _ = Describe("Podman pull", func() {
|
|||||||
Expect(session).Should(Exit(0))
|
Expect(session).Should(Exit(0))
|
||||||
})
|
})
|
||||||
|
|
||||||
It("podman pull from alternate registry with tag", func() {
|
|
||||||
session := podmanTest.Podman([]string{"pull", cirros})
|
|
||||||
session.WaitWithDefaultTimeout()
|
|
||||||
Expect(session).Should(Exit(0))
|
|
||||||
|
|
||||||
session = podmanTest.Podman([]string{"rmi", cirros})
|
|
||||||
session.WaitWithDefaultTimeout()
|
|
||||||
Expect(session).Should(Exit(0))
|
|
||||||
})
|
|
||||||
|
|
||||||
It("podman pull from alternate registry without tag", func() {
|
|
||||||
session := podmanTest.Podman([]string{"pull", "quay.io/libpod/cirros"})
|
|
||||||
session.WaitWithDefaultTimeout()
|
|
||||||
Expect(session).Should(Exit(0))
|
|
||||||
|
|
||||||
session = podmanTest.Podman([]string{"rmi", "quay.io/libpod/cirros"})
|
|
||||||
session.WaitWithDefaultTimeout()
|
|
||||||
Expect(session).Should(Exit(0))
|
|
||||||
})
|
|
||||||
|
|
||||||
It("podman pull by digest", func() {
|
It("podman pull by digest", func() {
|
||||||
session := podmanTest.Podman([]string{"pull", "quay.io/libpod/testdigest_v2s2@sha256:755f4d90b3716e2bf57060d249e2cd61c9ac089b1233465c5c2cb2d7ee550fdb"})
|
session := podmanTest.Podman([]string{"pull", "quay.io/libpod/testdigest_v2s2@sha256:755f4d90b3716e2bf57060d249e2cd61c9ac089b1233465c5c2cb2d7ee550fdb"})
|
||||||
session.WaitWithDefaultTimeout()
|
session.WaitWithDefaultTimeout()
|
||||||
@@ -251,12 +231,6 @@ var _ = Describe("Podman pull", func() {
|
|||||||
Expect(session).Should(Exit(0))
|
Expect(session).Should(Exit(0))
|
||||||
})
|
})
|
||||||
|
|
||||||
It("podman pull bogus image", func() {
|
|
||||||
session := podmanTest.Podman([]string{"pull", "umohnani/get-started"})
|
|
||||||
session.WaitWithDefaultTimeout()
|
|
||||||
Expect(session).To(ExitWithError())
|
|
||||||
})
|
|
||||||
|
|
||||||
It("podman pull from docker-archive", func() {
|
It("podman pull from docker-archive", func() {
|
||||||
SkipIfRemote("podman-remote does not support pulling from docker-archive")
|
SkipIfRemote("podman-remote does not support pulling from docker-archive")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user