aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-11-27 15:31:22 +0100
committerGitHub <noreply@github.com>2019-11-27 15:31:22 +0100
commit2178875fa7975f00a4da15fef9809cd3fb74feba (patch)
tree10f039a78dec47c3b809c7a964b61fd6ee95af46 /test
parent27a09f8fab740749964d28b5ead1a43c6d77a7c8 (diff)
parent63e46cc85cb0a9523e9c48db7a88039e0baeac29 (diff)
downloadpodman-2178875fa7975f00a4da15fef9809cd3fb74feba.tar.gz
podman-2178875fa7975f00a4da15fef9809cd3fb74feba.tar.bz2
podman-2178875fa7975f00a4da15fef9809cd3fb74feba.zip
Merge pull request #4568 from openSUSE/history
Add support for image name history
Diffstat (limited to 'test')
-rw-r--r--test/system/010-images.bats15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/system/010-images.bats b/test/system/010-images.bats
index 380623078..543876509 100644
--- a/test/system/010-images.bats
+++ b/test/system/010-images.bats
@@ -44,4 +44,19 @@ size | [0-9]\\\+
}
+@test "podman images - history output" {
+ run_podman images --format json
+ actual=$(echo $output | jq -r '.[0].history | length')
+ is "$actual" "0"
+
+ run_podman tag $PODMAN_TEST_IMAGE_REGISTRY/$PODMAN_TEST_IMAGE_USER/$PODMAN_TEST_IMAGE_NAME:$PODMAN_TEST_IMAGE_TAG test-image
+ run_podman images --format json
+ actual=$(echo $output | jq -r '.[1].history | length')
+ is "$actual" "0"
+ actual=$(echo $output | jq -r '.[0].history | length')
+ is "$actual" "1"
+ actual=$(echo $output | jq -r '.[0].history[0]')
+ is "$actual" "$PODMAN_TEST_IMAGE_REGISTRY/$PODMAN_TEST_IMAGE_USER/$PODMAN_TEST_IMAGE_NAME:$PODMAN_TEST_IMAGE_TAG"
+}
+
# vim: filetype=sh