diff options
author | Ed Santiago <santiago@redhat.com> | 2020-11-19 09:57:06 -0700 |
---|---|---|
committer | Ed Santiago <santiago@redhat.com> | 2020-12-01 08:14:54 -0700 |
commit | a17fb01d400f8f3504099fbd65e284124432f274 (patch) | |
tree | 26619409c5f94c0f93cca9e54eaf833bb7dd1b5b /test/system/010-images.bats | |
parent | 24383906f891cea0c802f911deed43f8f8f2ac85 (diff) | |
download | podman-a17fb01d400f8f3504099fbd65e284124432f274.tar.gz podman-a17fb01d400f8f3504099fbd65e284124432f274.tar.bz2 podman-a17fb01d400f8f3504099fbd65e284124432f274.zip |
BATS: add ping test
- run test : tweaks to recently-added network-conflict test:
* remove "-d" in run
* confirm exact warning text, and also that container
runs successfully
* test multiple --net options (regression #8057)
- images, run, build, exec tests: add multiple-flag
testing for various flags, confirming as appropriate
whether options are overridden or accumulated.
- ps test : add --filter and --sort tests
- pod test: run 'ping' inside container (confirms that
container gets PING capability)
Signed-off-by: Ed Santiago <santiago@redhat.com>
Diffstat (limited to 'test/system/010-images.bats')
-rw-r--r-- | test/system/010-images.bats | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/system/010-images.bats b/test/system/010-images.bats index 98bb0cc57..ee6da30ec 100644 --- a/test/system/010-images.bats +++ b/test/system/010-images.bats @@ -59,7 +59,8 @@ Labels.created_at | 20[0-9-]\\\+T[0-9:]\\\+Z @test "podman images - history output" { # podman history is persistent: it permanently alters our base image. # Create a dummy image here so we leave our setup as we found it. - run_podman run --name my-container $IMAGE true + # Multiple --name options confirm command-line override (last one wins) + run_podman run --name ignore-me --name my-container $IMAGE true run_podman commit my-container my-test-image run_podman images my-test-image --format '{{ .History }}' @@ -87,7 +88,8 @@ Labels.created_at | 20[0-9-]\\\+T[0-9:]\\\+Z } @test "podman images - filter" { - run_podman inspect --format '{{.ID}}' $IMAGE + # Multiple --format options confirm command-line override (last one wins) + run_podman inspect --format '{{.XYZ}}' --format '{{.ID}}' $IMAGE iid=$output run_podman images --noheading --filter=after=$iid |