summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-04-27 17:08:44 -0400
committerGitHub <noreply@github.com>2022-04-27 17:08:44 -0400
commit7321f5e4620b798b39d6dad2406347fc099f2e37 (patch)
tree49509260abafa44d26ec579db356211b4014d87a /test
parent578ffd7700157a779339e560885a6ce853d95c76 (diff)
parent22b421dd7e469b2015797ba93849474d39430994 (diff)
downloadpodman-7321f5e4620b798b39d6dad2406347fc099f2e37.tar.gz
podman-7321f5e4620b798b39d6dad2406347fc099f2e37.tar.bz2
podman-7321f5e4620b798b39d6dad2406347fc099f2e37.zip
Merge pull request #14034 from rhatdan/history
Add CreatedSince & CreatedAt format fields to podman image history
Diffstat (limited to 'test')
-rw-r--r--test/system/110-history.bats13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/system/110-history.bats b/test/system/110-history.bats
index 0f6d75cb3..da6f2177c 100644
--- a/test/system/110-history.bats
+++ b/test/system/110-history.bats
@@ -55,4 +55,17 @@ size | -\\\?[0-9]\\\+
}
+@test "podman image history Created" {
+ # Values from image LIST
+ run_podman image list --format '{{.CreatedSince}}--{{.CreatedAt}}' $IMAGE
+ from_imagelist="$output"
+ assert "$from_imagelist" =~ "^[0-9].* ago--[0-9]+-[0-9]+-[0-9]+ [0-9:]+ " \
+ "CreatedSince and CreatedAt look reasonable"
+
+ # Values from image HISTORY
+ run_podman image history --format '{{.CreatedSince}}--{{.CreatedAt}}' $IMAGE
+ assert "${lines[0]}" == "$from_imagelist" \
+ "CreatedSince and CreatedAt from image history should == image list"
+}
+
# vim: filetype=sh