summaryrefslogtreecommitdiff
path: root/test/system
diff options
context:
space:
mode:
authorValentin Rothberg <rothberg@redhat.com>2021-05-27 16:13:54 +0200
committerValentin Rothberg <rothberg@redhat.com>2021-05-31 14:38:43 +0200
commitfb4a0c572ed1264ebb12218e8905c4845cb159c5 (patch)
treeec71658e6352e62b29e8bb931faf96a0b644ed1c /test/system
parent59236762eca31a20d886837698db58e259a21de5 (diff)
downloadpodman-fb4a0c572ed1264ebb12218e8905c4845cb159c5.tar.gz
podman-fb4a0c572ed1264ebb12218e8905c4845cb159c5.tar.bz2
podman-fb4a0c572ed1264ebb12218e8905c4845cb159c5.zip
support tag@digest notation
Vendor in the latest HEAd of containers/common to implicitly support the tag@digest notation for images. To remain compatible with Docker, the tag will be stripped off the image reference and is entirely ignored. Fixes: #6721 Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
Diffstat (limited to 'test/system')
-rw-r--r--test/system/001-basic.bats8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/system/001-basic.bats b/test/system/001-basic.bats
index 97ef61511..963c89281 100644
--- a/test/system/001-basic.bats
+++ b/test/system/001-basic.bats
@@ -49,6 +49,14 @@ function setup() {
@test "podman can pull an image" {
run_podman pull $IMAGE
+
+ # Also make sure that the tag@digest syntax is supported.
+ run_podman inspect --format "{{ .Digest }}" $IMAGE
+ digest=$output
+ run_podman pull $IMAGE@$digest
+
+ # Now untag the digest reference again.
+ run_podman untag $IMAGE $IMAGE@$digest
}
# PR #7212: allow --remote anywhere before subcommand, not just as 1st flag