Merge pull request #4568 from openSUSE/history

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

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