aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorQi Wang <qiwan@redhat.com>2020-04-24 14:54:30 -0400
committerQi Wang <qiwan@redhat.com>2020-04-24 14:57:56 -0400
commit2f3734b143a6f1d61e396ca221a211b7c487d081 (patch)
tree58c5c6f3effe94a73e2a9ece8d20aeac8a209586 /test
parent3c3adac52838bc4d2b0fdda2cbb8366c81444728 (diff)
downloadpodman-2f3734b143a6f1d61e396ca221a211b7c487d081.tar.gz
podman-2f3734b143a6f1d61e396ca221a211b7c487d081.tar.bz2
podman-2f3734b143a6f1d61e396ca221a211b7c487d081.zip
Add --os to manifest add
Add --os to manifest add for overriding the os field. Signed-off-by: Qi Wang <qiwan@redhat.com>
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"`))
+ })
})