summaryrefslogtreecommitdiff
path: root/test/e2e
diff options
context:
space:
mode:
authoropenshift-ci[bot] <75433959+openshift-ci[bot]@users.noreply.github.com>2022-06-21 20:18:01 +0000
committerGitHub <noreply@github.com>2022-06-21 20:18:01 +0000
commit15a651f860191a6cfe0b3d5f1c0a846e6a584091 (patch)
tree77954b7c15a877f6ee84d3cfc90d5c3a6d9ba76d /test/e2e
parent8d17251f8a0574054d7dae4ddeb9484740616348 (diff)
parent69e44bbcc71ef5b20c9dcc1cca426e02617a3780 (diff)
downloadpodman-15a651f860191a6cfe0b3d5f1c0a846e6a584091.tar.gz
podman-15a651f860191a6cfe0b3d5f1c0a846e6a584091.tar.bz2
podman-15a651f860191a6cfe0b3d5f1c0a846e6a584091.zip
Merge pull request #13384 from flouthoc/podman-remote-add-with-annotate
bindings: manifest should follow `es_model` naming convention while marshalling `OSVersion` and `OSFeatures`
Diffstat (limited to 'test/e2e')
-rw-r--r--test/e2e/manifest_test.go21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/e2e/manifest_test.go b/test/e2e/manifest_test.go
index 88ccdc87d..2fffc9118 100644
--- a/test/e2e/manifest_test.go
+++ b/test/e2e/manifest_test.go
@@ -91,6 +91,27 @@ var _ = Describe("Podman manifest", func() {
Expect(session.OutputToString()).To(ContainSubstring(imageListARM64InstanceDigest))
})
+ It("add with new version", func() {
+ // Following test must pass for both podman and podman-remote
+ session := podmanTest.Podman([]string{"manifest", "create", "foo"})
+ session.WaitWithDefaultTimeout()
+ Expect(session).Should(Exit(0))
+ id := strings.TrimSpace(string(session.Out.Contents()))
+
+ session = podmanTest.Podman([]string{"manifest", "inspect", id})
+ session.WaitWithDefaultTimeout()
+ Expect(session).Should(Exit(0))
+
+ session = podmanTest.Podman([]string{"manifest", "add", "--os-version", "7.7.7", "foo", imageListInstance})
+ 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("7.7.7"))
+ })
+
It("tag", func() {
session := podmanTest.Podman([]string{"manifest", "create", "foobar"})
session.WaitWithDefaultTimeout()