diff options
author | Raul Sevilla <rsevilla@redhat.com> | 2021-07-12 09:50:50 +0200 |
---|---|---|
committer | Raul Sevilla <rsevilla@redhat.com> | 2021-07-12 10:28:35 +0200 |
commit | 00db5c6eafe92f1eb1a06280d951907764ac817d (patch) | |
tree | 1304b8adb0ccd9b621e4f664af120a62e8cc2024 | |
parent | bef1f03d3ca8bfd90f4cbb295d99bf97df74a815 (diff) | |
download | podman-00db5c6eafe92f1eb1a06280d951907764ac817d.tar.gz podman-00db5c6eafe92f1eb1a06280d951907764ac817d.tar.bz2 podman-00db5c6eafe92f1eb1a06280d951907764ac817d.zip |
Manifest create subcommand should accept more than 2 arguments
Signed-off-by: Raul Sevilla <rsevilla@redhat.com>
-rw-r--r-- | cmd/podman/manifest/create.go | 3 | ||||
-rw-r--r-- | test/e2e/manifest_test.go | 6 |
2 files changed, 8 insertions, 1 deletions
diff --git a/cmd/podman/manifest/create.go b/cmd/podman/manifest/create.go index 9f7d74d14..0c1ef89f9 100644 --- a/cmd/podman/manifest/create.go +++ b/cmd/podman/manifest/create.go @@ -20,8 +20,9 @@ var ( ValidArgsFunction: common.AutocompleteImages, Example: `podman manifest create mylist:v1.11 podman manifest create mylist:v1.11 arch-specific-image-to-add + podman manifest create mylist:v1.11 arch-specific-image-to-add another-arch-specific-image-to-add podman manifest create --all mylist:v1.11 transport:tagged-image-to-add`, - Args: cobra.RangeArgs(1, 2), + Args: cobra.MinimumNArgs(1), } ) diff --git a/test/e2e/manifest_test.go b/test/e2e/manifest_test.go index b2dc4f734..8c1ea4134 100644 --- a/test/e2e/manifest_test.go +++ b/test/e2e/manifest_test.go @@ -50,6 +50,12 @@ var _ = Describe("Podman manifest", func() { Expect(session.ExitCode()).To(Equal(0)) }) + It("podman manifest create", func() { + session := podmanTest.Podman([]string{"manifest", "create", "foo", imageList}) + session.WaitWithDefaultTimeout() + Expect(session.ExitCode()).To(Equal(0)) + }) + It("podman manifest inspect", func() { session := podmanTest.Podman([]string{"manifest", "inspect", BB}) session.WaitWithDefaultTimeout() |