aboutsummaryrefslogtreecommitdiff
path: root/test/e2e
diff options
context:
space:
mode:
authorValentin Rothberg <rothberg@redhat.com>2022-01-10 13:47:12 +0100
committerValentin Rothberg <rothberg@redhat.com>2022-01-10 16:25:37 +0100
commitb7380a7c367246fa50b2380a99dbff39c4dc78d0 (patch)
tree5ab5bd236e3f6f0e9036287a16740b184aa3c40b /test/e2e
parent6ed2c639ac614b8292660fda604d3a8f6cbb42b7 (diff)
downloadpodman-b7380a7c367246fa50b2380a99dbff39c4dc78d0.tar.gz
podman-b7380a7c367246fa50b2380a99dbff39c4dc78d0.tar.bz2
podman-b7380a7c367246fa50b2380a99dbff39c4dc78d0.zip
vendor c/common
Also update the e2e pull test to account for the changes when pulling from the dir transport. Images pulled via the dir transport are not tagged anymore; the path is not a reliable source. Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
Diffstat (limited to 'test/e2e')
-rw-r--r--test/e2e/pull_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/e2e/pull_test.go b/test/e2e/pull_test.go
index f22acca6e..38afff9bd 100644
--- a/test/e2e/pull_test.go
+++ b/test/e2e/pull_test.go
@@ -354,13 +354,13 @@ var _ = Describe("Podman pull", func() {
session = podmanTest.Podman([]string{"rmi", "cirros"})
session.WaitWithDefaultTimeout()
Expect(session).Should(Exit(0))
- session = podmanTest.Podman([]string{"pull", imgPath})
+ session = podmanTest.Podman([]string{"run", imgPath, "ls"})
session.WaitWithDefaultTimeout()
Expect(session).Should(Exit(0))
- session = podmanTest.Podman([]string{"images"})
+ // Note that reference is not preserved in dir.
+ session = podmanTest.Podman([]string{"image", "exists", "cirros"})
session.WaitWithDefaultTimeout()
- Expect(session).Should(Exit(0))
- Expect(session.LineInOutputContainsTag(filepath.Join("localhost", dirpath), "latest")).To(BeTrue())
+ Expect(session).Should(Exit(1))
})
It("podman pull from local OCI directory", func() {