diff options
author | Sujil02 <sushah@redhat.com> | 2020-04-27 17:05:39 -0400 |
---|---|---|
committer | Sujil02 <sushah@redhat.com> | 2020-04-28 16:16:30 -0400 |
commit | 38eb9f4a3dda2b9b678672e99c05572f34c6a84c (patch) | |
tree | 3151575816e1f69b444e9ec57fdc3ddbcbbe63e6 /test/e2e | |
parent | ebf041652e93487b8afbac2bc4d9031d8547d866 (diff) | |
download | podman-38eb9f4a3dda2b9b678672e99c05572f34c6a84c.tar.gz podman-38eb9f4a3dda2b9b678672e99c05572f34c6a84c.tar.bz2 podman-38eb9f4a3dda2b9b678672e99c05572f34c6a84c.zip |
Fixes podman save fails when specifying an image using a digest #5234
Adds check to parse normalized name and create docker archive dst reference
for tagged untagged image. Relevant test case added.
Signed-off-by: Sujil02 <sushah@redhat.com>
Diffstat (limited to 'test/e2e')
-rw-r--r-- | test/e2e/save_test.go | 12 |
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)) + }) }) |