mirror of
https://github.com/containers/podman.git
synced 2025-06-23 02:18:13 +08:00
Manifest create subcommand should accept more than 2 arguments
Signed-off-by: Raul Sevilla <rsevilla@redhat.com>
This commit is contained in:
@ -20,8 +20,9 @@ var (
|
|||||||
ValidArgsFunction: common.AutocompleteImages,
|
ValidArgsFunction: common.AutocompleteImages,
|
||||||
Example: `podman manifest create mylist:v1.11
|
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
|
||||||
|
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`,
|
podman manifest create --all mylist:v1.11 transport:tagged-image-to-add`,
|
||||||
Args: cobra.RangeArgs(1, 2),
|
Args: cobra.MinimumNArgs(1),
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -50,6 +50,12 @@ var _ = Describe("Podman manifest", func() {
|
|||||||
Expect(session.ExitCode()).To(Equal(0))
|
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() {
|
It("podman manifest inspect", func() {
|
||||||
session := podmanTest.Podman([]string{"manifest", "inspect", BB})
|
session := podmanTest.Podman([]string{"manifest", "inspect", BB})
|
||||||
session.WaitWithDefaultTimeout()
|
session.WaitWithDefaultTimeout()
|
||||||
|
Reference in New Issue
Block a user