spiegel_podman/cmd/podman/containers
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
..
attach.go Fix Id->ID where possible for lint 2020-06-10 05:49:41 -04:00
checkpoint.go Fix checkpoint --leave-running 2020-05-14 14:29:04 +02:00
cleanup.go Enable cleanup processes for detached exec 2020-05-20 16:11:05 -04:00
commit.go BATS tests: new too-many-arguments test 2020-06-23 14:17:48 -06:00
container.go Fixup issues found by golint 2020-06-10 05:49:41 -04:00
cp.go v2 podman unshare command 2020-05-08 13:28:11 -05:00
create.go Fix conflicts between privileged and other flags 2020-06-22 16:08:09 -04:00
diff.go Fix Id->ID where possible for lint 2020-06-10 05:49:41 -04:00
exec.go Fix Id->ID where possible for lint 2020-06-10 05:49:41 -04:00
exists.go system tests must pass 2020-04-28 15:17:00 -05:00
export.go BATS tests: new too-many-arguments test 2020-06-23 14:17:48 -06:00
init.go v2 podman unshare command 2020-05-08 13:28:11 -05:00
inspect.go BATS tests: new too-many-arguments test 2020-06-23 14:17:48 -06:00
kill.go fix commands without input 2020-04-30 15:10:49 -05:00
list.go V2 enable ps tests 2020-04-29 15:51:37 -07:00
logs.go V2 enable remote logs and testing 2020-05-22 07:51:29 -07:00
mount.go BATS tests: new too-many-arguments test 2020-06-23 14:17:48 -06:00
pause.go podmanv2 container subcommands 2020-04-21 08:39:54 -05:00
port.go BATS tests: new too-many-arguments test 2020-06-23 14:17:48 -06:00
prune.go Fix errors found when comparing podman v1 --help versus V2 2020-05-04 14:16:34 -04:00
ps.go Add JSON output field for ps 2020-06-23 11:24:27 -05:00
restart.go podmanv2 container subcommands 2020-04-21 08:39:54 -05:00
restore.go Podman V2 birth 2020-04-16 15:53:58 -05:00
rm.go {create,run} --replace 2020-06-15 15:53:51 +02:00
run.go Add --preservefds to podman run 2020-06-19 09:40:13 -04:00
runlabel.go Attempt to turn on additional build tests 2020-05-22 12:55:23 -04:00
start.go v2 podman remote attach, start, and run 2020-05-15 10:09:45 -05:00
stats.go Turn on More linters 2020-06-15 07:05:56 -04:00
stop.go Add parallel operation to podman stop 2020-06-05 16:18:53 -04:00
top.go BATS tests: new too-many-arguments test 2020-06-23 14:17:48 -06:00
unmount.go enable rootless mount tests 2020-05-11 13:03:09 +02:00
unpause.go BATS help test: check usage string 2020-05-05 07:19:58 -06:00
utils.go Podman V2 birth 2020-04-16 15:53:58 -05:00
wait.go Fix Id->ID where possible for lint 2020-06-10 05:49:41 -04:00