summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-04-27 15:33:00 +0200
committerGitHub <noreply@github.com>2020-04-27 15:33:00 +0200
commitef46687dc5bd3eff7b2e75a347f1b026c3b50f33 (patch)
treed84ba00b5cc4661f1cba70f1f6ec1e3893a9fe30 /test
parenta5bce57218d7a3067e75028b237f92e0230969c3 (diff)
parent2f3734b143a6f1d61e396ca221a211b7c487d081 (diff)
downloadpodman-ef46687dc5bd3eff7b2e75a347f1b026c3b50f33.tar.gz
podman-ef46687dc5bd3eff7b2e75a347f1b026c3b50f33.tar.bz2
podman-ef46687dc5bd3eff7b2e75a347f1b026c3b50f33.zip
Merge pull request #5976 from QiWang19/manifest-add-os
Add --os to manifest add
Diffstat (limited to 'test')
-rw-r--r--test/e2e/manifest_test.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/e2e/manifest_test.go b/test/e2e/manifest_test.go
index a52916e87..9b5a24771 100644
--- a/test/e2e/manifest_test.go
+++ b/test/e2e/manifest_test.go
@@ -85,4 +85,17 @@ var _ = Describe("Podman manifest", func() {
Expect(session.OutputToString()).To(ContainSubstring(imageListPPC64LEInstanceDigest))
Expect(session.OutputToString()).To(ContainSubstring(imageListS390XInstanceDigest))
})
+
+ It("podman manifest add --os", func() {
+ session := podmanTest.Podman([]string{"manifest", "create", "foo"})
+ session.WaitWithDefaultTimeout()
+ Expect(session.ExitCode()).To(Equal(0))
+ session = podmanTest.Podman([]string{"manifest", "add", "--os", "bar", "foo", imageList})
+ session.WaitWithDefaultTimeout()
+ Expect(session.ExitCode()).To(Equal(0))
+ session = podmanTest.Podman([]string{"manifest", "inspect", "foo"})
+ session.WaitWithDefaultTimeout()
+ Expect(session.ExitCode()).To(Equal(0))
+ Expect(session.OutputToString()).To(ContainSubstring(`"os": "bar"`))
+ })
})