summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-09-17 09:36:49 -0400
committerGitHub <noreply@github.com>2020-09-17 09:36:49 -0400
commitd8414add00da27098267b8bd400cb5b045e8be96 (patch)
treeb71894a84b49d6ffcdbf0358d644bbe9f92a395b /test
parent98aa458c7a13c72fabe02cd0ed2919c2801ef207 (diff)
parentecae5f7adeb1acea9c090c3d6c43f7470f33ac84 (diff)
downloadpodman-d8414add00da27098267b8bd400cb5b045e8be96.tar.gz
podman-d8414add00da27098267b8bd400cb5b045e8be96.tar.bz2
podman-d8414add00da27098267b8bd400cb5b045e8be96.zip
Merge pull request #7654 from vrothberg/fix-7651
image list: return all associated names
Diffstat (limited to 'test')
-rw-r--r--test/e2e/images_test.go32
1 files changed, 32 insertions, 0 deletions
diff --git a/test/e2e/images_test.go b/test/e2e/images_test.go
index a615a9f99..ddf2e20b8 100644
--- a/test/e2e/images_test.go
+++ b/test/e2e/images_test.go
@@ -241,6 +241,38 @@ WORKDIR /test
Expect(result.OutputToStringArray()).Should(HaveLen(0), "dangling image output: %q", result.OutputToString())
})
+ It("podman pull by digest and list --all", func() {
+ // Prevent regressing on issue #7651.
+ digestPullAndList := func(noneTag bool) {
+ session := podmanTest.Podman([]string{"pull", ALPINEAMD64DIGEST})
+ session.WaitWithDefaultTimeout()
+ Expect(session).Should(Exit(0))
+
+ result := podmanTest.Podman([]string{"images", "--all", ALPINEAMD64DIGEST})
+ result.WaitWithDefaultTimeout()
+ Expect(result).Should(Exit(0))
+
+ found, _ := result.GrepString("<none>")
+ if noneTag {
+ Expect(found).To(BeTrue())
+ } else {
+ Expect(found).To(BeFalse())
+ }
+ }
+ // No "<none>" tag as tagged alpine instances should be present.
+ session := podmanTest.Podman([]string{"pull", ALPINELISTTAG})
+ session.WaitWithDefaultTimeout()
+ Expect(session).Should(Exit(0))
+ digestPullAndList(false)
+
+ // Now remove all images, re-pull by digest and check for the "<none>" tag.
+ session = podmanTest.Podman([]string{"rmi", "-af"})
+ session.WaitWithDefaultTimeout()
+ Expect(session).Should(Exit(0))
+
+ digestPullAndList(true)
+ })
+
It("podman check for image with sha256: prefix", func() {
session := podmanTest.Podman([]string{"inspect", "--format=json", ALPINE})
session.WaitWithDefaultTimeout()