diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-06-01 22:38:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-01 22:38:03 +0200 |
commit | 24b364a230102acb8abdf5724c63153d50f03a6c (patch) | |
tree | cd82ce02f962975e4605f773df355de4367d3ff7 /test | |
parent | ce2b331fefb2ce72cb2fa93c4f3c19d25f79f2a0 (diff) | |
parent | fb4a0c572ed1264ebb12218e8905c4845cb159c5 (diff) | |
download | podman-24b364a230102acb8abdf5724c63153d50f03a6c.tar.gz podman-24b364a230102acb8abdf5724c63153d50f03a6c.tar.bz2 podman-24b364a230102acb8abdf5724c63153d50f03a6c.zip |
Merge pull request #10486 from vrothberg/tag-digest-support
support tag@digest notation
Diffstat (limited to 'test')
-rw-r--r-- | test/e2e/play_kube_test.go | 2 | ||||
-rw-r--r-- | test/system/001-basic.bats | 8 |
2 files changed, 9 insertions, 1 deletions
diff --git a/test/e2e/play_kube_test.go b/test/e2e/play_kube_test.go index e0af27f7a..833991452 100644 --- a/test/e2e/play_kube_test.go +++ b/test/e2e/play_kube_test.go @@ -2119,7 +2119,7 @@ MemoryReservation: {{ .HostConfig.MemoryReservation }}`}) kube := podmanTest.Podman([]string{"play", "kube", kubeYaml}) kube.WaitWithDefaultTimeout() Expect(kube.ExitCode()).To(Equal(125)) - Expect(kube.ErrorToString()).To(ContainSubstring(invalidImageName)) + Expect(kube.ErrorToString()).To(ContainSubstring("invalid reference format")) }) It("podman play kube applies log driver to containers", func() { 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 |