diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2022-04-27 10:39:47 -0400 |
---|---|---|
committer | Matthew Heon <matthew.heon@pm.me> | 2022-05-03 13:32:28 -0400 |
commit | 4ff6884fb85d8a95f5a90848e92c3ff9ea6bcf57 (patch) | |
tree | 959affa3f08acfb45849e82708bfc57ae1398f01 /test/system | |
parent | 3226561cf3960d76aa633daf134dbfc3ec9e7fa6 (diff) | |
download | podman-4ff6884fb85d8a95f5a90848e92c3ff9ea6bcf57.tar.gz podman-4ff6884fb85d8a95f5a90848e92c3ff9ea6bcf57.tar.bz2 podman-4ff6884fb85d8a95f5a90848e92c3ff9ea6bcf57.zip |
Add CreatedSince & CreatedAt format fields to podman image history
Fixes: https://github.com/containers/podman/issues/14012
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'test/system')
-rw-r--r-- | test/system/110-history.bats | 13 |
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 |