summaryrefslogtreecommitdiff
path: root/test/e2e/save_test.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-04-28 23:10:20 +0200
committerGitHub <noreply@github.com>2020-04-28 23:10:20 +0200
commitdcac908bbe879a8b0b453531252dddccf8690077 (patch)
treefce9086e389c49d1542126bc696cb2230fc4d494 /test/e2e/save_test.go
parent30b27819d0fc2e4e61df155758179a387bc9506d (diff)
parent38eb9f4a3dda2b9b678672e99c05572f34c6a84c (diff)
downloadpodman-dcac908bbe879a8b0b453531252dddccf8690077.tar.gz
podman-dcac908bbe879a8b0b453531252dddccf8690077.tar.bz2
podman-dcac908bbe879a8b0b453531252dddccf8690077.zip
Merge pull request #6011 from sujil02/podman-save-issue-5234
Fixes podman save fails when specifying an image using a digest fixes-5234
Diffstat (limited to 'test/e2e/save_test.go')
-rw-r--r--test/e2e/save_test.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/e2e/save_test.go b/test/e2e/save_test.go
index 60825f975..aaa5ae180 100644
--- a/test/e2e/save_test.go
+++ b/test/e2e/save_test.go
@@ -116,4 +116,16 @@ var _ = Describe("Podman save", func() {
Expect(save).To(ExitWithError())
})
+ It("podman save image with digest reference", func() {
+ // pull a digest reference
+ session := podmanTest.PodmanNoCache([]string{"pull", ALPINELISTDIGEST})
+ session.WaitWithDefaultTimeout()
+ Expect(session.ExitCode()).To(Equal(0))
+
+ // save a digest reference should exit without error.
+ outfile := filepath.Join(podmanTest.TempDir, "temp.tar")
+ save := podmanTest.PodmanNoCache([]string{"save", "-o", outfile, ALPINELISTDIGEST})
+ save.WaitWithDefaultTimeout()
+ Expect(save.ExitCode()).To(Equal(0))
+ })
})