Sanity-check that the test is really using partial pulls

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
This commit is contained in:
Miloslav Trmač
2024-11-27 19:13:33 +01:00
parent 5ff496ea2b
commit 39e08c3ffa

View File

@ -84,9 +84,12 @@ EOF
run_podman $globalargs rmi $image2 $image3
run_podman $globalargs pull \
run_podman --log-level debug $globalargs pull \
$pushpullargs \
$image2
if [ "$(podman_storage_driver)" != vfs ]; then # VFS does not implement partial pulls
assert "$output" =~ "Retrieved partial blob" # A spot check that we are really using the partial-pull code path
fi
run -0 skopeo inspect containers-storage:$image2
assert "$output" =~ "application/vnd.oci.image.layer.v1.tar\+zstd" "pulled image must be zstd-compressed"
@ -182,9 +185,12 @@ EOF
run_podman $globalargs rmi $image
run_podman $globalargs pull \
run_podman --log-level debug $globalargs pull \
$pushpullargs \
$image
if [ "$(podman_storage_driver)" != vfs ]; then # VFS does not implement partial pulls
assert "$output" =~ "Retrieved partial blob" # A spot check that we are really using the partial-pull code path
fi
# expect that the image contains exactly the same data as before
mount_image_and_take_digest $image