summaryrefslogtreecommitdiff
path: root/test/system/010-images.bats
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-12-01 19:55:02 +0100
committerGitHub <noreply@github.com>2020-12-01 19:55:02 +0100
commitb735aa8122cd01a3e7146a7c6f0662b37bbaf377 (patch)
tree12ec0a157ba7f7e2fd57bf93f577b45ba9737705 /test/system/010-images.bats
parent055a7a909103cda8c18b8f24ecd9b919c49074f4 (diff)
parenta17fb01d400f8f3504099fbd65e284124432f274 (diff)
downloadpodman-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.bats6
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