From 5ab98f2c07acc5650c6a7adcf295657a99875c15 Mon Sep 17 00:00:00 2001 From: Aditya R Date: Fri, 29 Jul 2022 23:04:45 +0530 Subject: test: verify manifest inspect must contain OCI annotations Signed-off-by: Aditya R --- test/e2e/manifest_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test/e2e') diff --git a/test/e2e/manifest_test.go b/test/e2e/manifest_test.go index 893210a1f..e80772aed 100644 --- a/test/e2e/manifest_test.go +++ b/test/e2e/manifest_test.go @@ -173,13 +173,15 @@ var _ = Describe("Podman manifest", func() { session = podmanTest.Podman([]string{"manifest", "add", "foo", imageListInstance}) session.WaitWithDefaultTimeout() Expect(session).Should(Exit(0)) - session = podmanTest.Podman([]string{"manifest", "annotate", "--arch", "bar", "foo", imageListARM64InstanceDigest}) + session = podmanTest.Podman([]string{"manifest", "annotate", "--annotation", "hello=world", "--arch", "bar", "foo", imageListARM64InstanceDigest}) 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(`"architecture": "bar"`)) + // Check added annotation + Expect(session.OutputToString()).To(ContainSubstring(`"hello": "world"`)) }) It("remove digest", func() { -- cgit v1.2.3-54-g00ecf