diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-11-23 13:23:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-23 13:23:32 +0100 |
commit | 3a19cdcc77bf2fd635d19bae6bdccc3d531a56c2 (patch) | |
tree | b1d763fec5a32b4d339953d049ce179749d1ff54 /test | |
parent | 90c635fd675bf9378e0ee0cbc7b95229bf9653e4 (diff) | |
parent | 0d1aaf080eb116f1e8e23cd55a8bca0ed5f2e596 (diff) | |
download | podman-3a19cdcc77bf2fd635d19bae6bdccc3d531a56c2.tar.gz podman-3a19cdcc77bf2fd635d19bae6bdccc3d531a56c2.tar.bz2 podman-3a19cdcc77bf2fd635d19bae6bdccc3d531a56c2.zip |
Merge pull request #12010 from vrothberg/fix-11964
image lookup: do not match *any* tags
Diffstat (limited to 'test')
-rw-r--r-- | test/e2e/pull_test.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/e2e/pull_test.go b/test/e2e/pull_test.go index c377f158d..fdb1b0c57 100644 --- a/test/e2e/pull_test.go +++ b/test/e2e/pull_test.go @@ -48,7 +48,7 @@ var _ = Describe("Podman pull", func() { found, _ := session.ErrorGrepString(expectedError) Expect(found).To(Equal(true)) - session = podmanTest.Podman([]string{"rmi", "busybox", "alpine", "testdigest_v2s2", "quay.io/libpod/cirros"}) + session = podmanTest.Podman([]string{"rmi", "busybox:musl", "alpine", "quay.io/libpod/cirros", "testdigest_v2s2@sha256:755f4d90b3716e2bf57060d249e2cd61c9ac089b1233465c5c2cb2d7ee550fdb"}) session.WaitWithDefaultTimeout() Expect(session).Should(Exit(0)) }) @@ -104,8 +104,13 @@ var _ = Describe("Podman pull", func() { session.WaitWithDefaultTimeout() Expect(session).Should(Exit(0)) + // Without a tag/digest the input is normalized with the "latest" tag, see #11964 session = podmanTest.Podman([]string{"rmi", "testdigest_v2s2"}) session.WaitWithDefaultTimeout() + Expect(session).Should(Exit(1)) + + session = podmanTest.Podman([]string{"rmi", "testdigest_v2s2@sha256:755f4d90b3716e2bf57060d249e2cd61c9ac089b1233465c5c2cb2d7ee550fdb"}) + session.WaitWithDefaultTimeout() Expect(session).Should(Exit(0)) }) |