mirror of
https://github.com/containers/podman.git
synced 2025-05-21 17:16:22 +08:00
Merge pull request #15097 from flouthoc/check-common-manifest-inspect
manifest,test: `inspect` should contain `OCI` annotations.
This commit is contained in:
@ -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() {
|
||||
|
Reference in New Issue
Block a user