automation-tests/cmd/podman/pods
Ed Santiago 6864a5547a BATS tests: new too-many-arguments test
...plus a few others. And fixes to actual parsing.

If a command's usage message includes '...' in the
argument list, assume it can take unlimited arguments.
Nothing we can check.

For all others, though, the ALL-CAPS part on the
right-hand side of the usage message will define
an upper bound on the number of arguments accepted
by the command. So in our 'podman --help' test,
generate N+1 args and run that command. We expect
a 125 exit status and a suitably helpful error message.

Not all podman commands or subcommands were checking,
so I fixed that. And, fixed some broken usage messages
(all-caps FLAGS, and '[flags]' at the end of 'ARGS').
Add new checks to the help test to prevent those in
the future.

Plus a little refactoring/cleanup where necessary.

Signed-off-by: Ed Santiago <santiago@redhat.com>
2020-06-23 14:17:48 -06:00
..
create.go pod create --replace 2020-06-15 15:55:55 +02:00
exists.go system tests must pass 2020-04-28 15:17:00 -05:00
inspect.go Add --format to pod inspect 2020-05-27 09:48:38 +03:00
kill.go Podman V2 birth 2020-04-16 15:53:58 -05:00
pause.go Podman V2 birth 2020-04-16 15:53:58 -05:00
pod.go Fixup issues found by golint 2020-06-10 05:49:41 -04:00
prune.go And system prune feature for v2. 2020-05-01 13:57:16 -04:00
ps.go Turn on More linters 2020-06-15 07:05:56 -04:00
restart.go Podman V2 birth 2020-04-16 15:53:58 -05:00
rm.go pod create --replace 2020-06-15 15:55:55 +02:00
start.go container-{create,run}: add `--pod-id-file` 2020-06-11 11:01:13 +02:00
stats.go Fixup issues found by golint 2020-06-10 05:49:41 -04:00
stop.go container-{create,run}: add `--pod-id-file` 2020-06-11 11:01:13 +02:00
top.go BATS tests: new too-many-arguments test 2020-06-23 14:17:48 -06:00
unpause.go Podman V2 birth 2020-04-16 15:53:58 -05:00