automation-tests/cmd/podman/common
Matthew Heon f7c3cfde77 Add small fixes for 'podman run' from diffing inspect
To try and identify differences between Podman v1.9 and master,
I ran a series of `podman run` commands with various flags
through each, then inspecting the resulting containers and diffed
the inspect JSON between each. This identified a number of issues
which are fixed in this PR.

In order of discovery:
- Podman v2 gave short names for images, where Podman v1 gave the
  fully-qualified name. Simple enough fix (get image tags and use
  the first one if they're available)
- The --restart flag was not being parsed correctly when a number
  of retries was specified. Parsing has been corrected.
- The -m flag was not setting the swap limit (simple fix to set
  swap in that case if it's not explicitly set by the user)
- The --cpus flag was completely nonfunctional (wired in its
  logic)

Tests have been added for all of these to catch future
regressions.

Signed-off-by: Matthew Heon <matthew.heon@pm.me>
2020-05-05 20:21:01 -04:00
..
create.go cgroupsns was not following containers.conf 2020-05-01 15:00:33 -04:00
create_opts.go cmd, podman: do not override entrypoint if unset 2020-04-30 11:33:34 +02:00
createparse.go Cleanup network option parsing 2020-04-19 05:19:30 -04:00
default.go Provide a json variable pointing to a configured json API 2020-04-21 07:56:10 -07:00
netflags.go Merge pull request #5919 from rhatdan/v2 2020-04-21 16:53:53 -04:00
ports.go V2 enable ps tests 2020-04-29 15:51:37 -07:00
specgen.go Add small fixes for 'podman run' from diffing inspect 2020-05-05 20:21:01 -04:00
types.go Podman V2 birth 2020-04-16 15:53:58 -05:00
util.go Rework port parsing to support --expose and -P 2020-05-04 20:57:27 -04:00
volumes.go Enable basic volumes support in Podmanv2 2020-04-22 14:24:12 -04:00