diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-12-01 19:55:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-01 19:55:02 +0100 |
commit | b735aa8122cd01a3e7146a7c6f0662b37bbaf377 (patch) | |
tree | 12ec0a157ba7f7e2fd57bf93f577b45ba9737705 /test/system/010-images.bats | |
parent | 055a7a909103cda8c18b8f24ecd9b919c49074f4 (diff) | |
parent | a17fb01d400f8f3504099fbd65e284124432f274 (diff) | |
download | podman-b735aa8122cd01a3e7146a7c6f0662b37bbaf377.tar.gz podman-b735aa8122cd01a3e7146a7c6f0662b37bbaf377.tar.bz2 podman-b735aa8122cd01a3e7146a7c6f0662b37bbaf377.zip |
Merge pull request #8535 from edsantiago/bats
BATS: add ping test, ps filters, multi-option
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 |