summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAditya R <arajan@redhat.com>2022-07-29 23:04:45 +0530
committerMatthew Heon <mheon@redhat.com>2022-08-10 16:46:05 -0400
commit5c17d1b14ba00acfc8a8a96dd08898c612a6eac4 (patch)
tree7f8543dc723bf6dd10ad7e050cd0a123d9e9e0fd
parent6b2bbd2d195c48d3cafeb0f731660c76aa4131b2 (diff)
downloadpodman-5c17d1b14ba00acfc8a8a96dd08898c612a6eac4.tar.gz
podman-5c17d1b14ba00acfc8a8a96dd08898c612a6eac4.tar.bz2
podman-5c17d1b14ba00acfc8a8a96dd08898c612a6eac4.zip
test: verify manifest inspect must contain OCI annotations
Signed-off-by: Aditya R <arajan@redhat.com>
-rw-r--r--test/e2e/manifest_test.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/e2e/manifest_test.go b/test/e2e/manifest_test.go
index a7fcd1559..caac23a44 100644
--- a/test/e2e/manifest_test.go
+++ b/test/e2e/manifest_test.go
@@ -171,13 +171,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() {