diff options
author | Aditya Rajan <arajan@redhat.com> | 2021-11-01 17:15:55 +0530 |
---|---|---|
committer | Aditya Rajan <arajan@redhat.com> | 2021-11-01 17:15:59 +0530 |
commit | 5c2d17e1c1c64b7e3ed1f9c82bf894cacf886d7c (patch) | |
tree | 21d8d2deed981b87f8a01293d0c5549b1df39bfe /test/e2e/manifest_test.go | |
parent | 09aade7816e096550e805869f1300d7198aa8f91 (diff) | |
download | podman-5c2d17e1c1c64b7e3ed1f9c82bf894cacf886d7c.tar.gz podman-5c2d17e1c1c64b7e3ed1f9c82bf894cacf886d7c.tar.bz2 podman-5c2d17e1c1c64b7e3ed1f9c82bf894cacf886d7c.zip |
[backport] tag: Support tagging manifest list instead of resolving to images
Following commit makes sure when buildah tag is invoked on a manifest
list, it tags the same manifest list instead of resolving to an image and
tagging it.
Backporting https://github.com/containers/podman/pull/12057
Signed-off-by: Aditya Rajan <arajan@redhat.com>
Diffstat (limited to 'test/e2e/manifest_test.go')
-rw-r--r-- | test/e2e/manifest_test.go | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/e2e/manifest_test.go b/test/e2e/manifest_test.go index 27aaaba48..5978214ff 100644 --- a/test/e2e/manifest_test.go +++ b/test/e2e/manifest_test.go @@ -93,6 +93,25 @@ var _ = Describe("Podman manifest", func() { Expect(session.OutputToString()).To(ContainSubstring(imageListARM64InstanceDigest)) }) + It("podman manifest tag", func() { + session := podmanTest.Podman([]string{"manifest", "create", "foobar"}) + session.WaitWithDefaultTimeout() + Expect(session).Should(Exit(0)) + session = podmanTest.Podman([]string{"manifest", "add", "foobar", "quay.io/libpod/busybox"}) + session.WaitWithDefaultTimeout() + Expect(session).Should(Exit(0)) + session = podmanTest.Podman([]string{"tag", "foobar", "foobar2"}) + session.WaitWithDefaultTimeout() + Expect(session).Should(Exit(0)) + session = podmanTest.Podman([]string{"manifest", "inspect", "foobar"}) + session.WaitWithDefaultTimeout() + Expect(session).Should(Exit(0)) + session2 := podmanTest.Podman([]string{"manifest", "inspect", "foobar2"}) + session2.WaitWithDefaultTimeout() + Expect(session2).Should(Exit(0)) + Expect(session2.OutputToString()).To(Equal(session.OutputToString())) + }) + It("podman manifest add --all", func() { session := podmanTest.Podman([]string{"manifest", "create", "foo"}) session.WaitWithDefaultTimeout() |