From 32f54a81ed797597827123b671b6e73194354327 Mon Sep 17 00:00:00 2001 From: Toshiki Sonoda Date: Thu, 29 Sep 2022 11:01:33 +0900 Subject: remote: fix manifest add --annotation * `manifest add --annotation option` adds annotations field on remote environment. * `manifest inspect` prints annotations field on remote environment. Fixes: #15952 Signed-off-by: Toshiki Sonoda --- test/e2e/manifest_test.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'test') diff --git a/test/e2e/manifest_test.go b/test/e2e/manifest_test.go index b0a5e7d03..404f2cd3a 100644 --- a/test/e2e/manifest_test.go +++ b/test/e2e/manifest_test.go @@ -165,6 +165,20 @@ var _ = Describe("Podman manifest", func() { )) }) + It("add --annotation", func() { + session := podmanTest.Podman([]string{"manifest", "create", "foo"}) + session.WaitWithDefaultTimeout() + Expect(session).Should(Exit(0)) + session = podmanTest.Podman([]string{"manifest", "add", "--annotation", "hoge=fuga", "foo", imageList}) + session.WaitWithDefaultTimeout() + Expect(session).Should(Exit(0)) + session = podmanTest.Podman([]string{"manifest", "inspect", "foo"}) + session.WaitWithDefaultTimeout() + Expect(session).Should(Exit(0)) + Expect(session.OutputToString()).To(ContainSubstring(`"annotations"`)) + Expect(session.OutputToString()).To(ContainSubstring(`"hoge": "fuga"`)) + }) + It("add --os", func() { session := podmanTest.Podman([]string{"manifest", "create", "foo"}) session.WaitWithDefaultTimeout() -- cgit v1.2.3-54-g00ecf