diff options
author | umohnani8 <umohnani@redhat.com> | 2018-05-16 11:41:08 -0400 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-05-16 18:06:52 +0000 |
commit | 7dced311d1119d98dbdd60f6d47fdde5abbff7d7 (patch) | |
tree | bc914183a3918fa79ebfb248fbdff2771d6a3f13 /test/e2e | |
parent | 5c54c53534d3e09a99341864f1c0c96a1f0ad0fe (diff) | |
download | podman-7dced311d1119d98dbdd60f6d47fdde5abbff7d7.tar.gz podman-7dced311d1119d98dbdd60f6d47fdde5abbff7d7.tar.bz2 podman-7dced311d1119d98dbdd60f6d47fdde5abbff7d7.zip |
Allow push/save without image reference
If the user uses the image ID when saving to either docker-archive
or oci-archive, then do not save a reference in the manifest/index.json.
If the user chooses to push without an image reference, i.e <transport>:<path>
it should be valid and succeed.
Signed-off-by: umohnani8 <umohnani@redhat.com>
Closes: #782
Approved by: rhatdan
Diffstat (limited to 'test/e2e')
-rw-r--r-- | test/e2e/push_test.go | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/e2e/push_test.go b/test/e2e/push_test.go index 46ec4ccbd..b5a1002f2 100644 --- a/test/e2e/push_test.go +++ b/test/e2e/push_test.go @@ -206,4 +206,22 @@ var _ = Describe("Podman push", func() { Expect(clean.ExitCode()).To(Equal(0)) }) + It("podman push to docker-archive no reference", func() { + session := podmanTest.Podman([]string{"push", ALPINE, "docker-archive:/tmp/alp"}) + session.WaitWithDefaultTimeout() + Expect(session.ExitCode()).To(Equal(0)) + clean := podmanTest.SystemExec("rm", []string{"/tmp/alp"}) + clean.WaitWithDefaultTimeout() + Expect(clean.ExitCode()).To(Equal(0)) + }) + + It("podman push to oci-archive no reference", func() { + session := podmanTest.Podman([]string{"push", ALPINE, "oci-archive:/tmp/alp-oci"}) + session.WaitWithDefaultTimeout() + Expect(session.ExitCode()).To(Equal(0)) + clean := podmanTest.SystemExec("rm", []string{"/tmp/alp-oci"}) + clean.WaitWithDefaultTimeout() + Expect(clean.ExitCode()).To(Equal(0)) + }) + }) |