Merge pull request #4568 from openSUSE/history

Add support for image name history
This commit is contained in:
OpenShift Merge Robot authored and GitHub committed 2019-11-27 15:31:22 +01:00
commit 2178875fa7
24 files changed
+346 -40

No files matched your search

+15
View File
@@ -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