From 39e08c3ffa1d360ada9e95d5efd7c536dba971dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20Trma=C4=8D?= Date: Wed, 27 Nov 2024 19:13:33 +0100 Subject: [PATCH] Sanity-check that the test is really using partial pulls MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miloslav Trmač --- test/system/155-partial-pull.bats | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/test/system/155-partial-pull.bats b/test/system/155-partial-pull.bats index 994cd16303..d062101b7a 100644 --- a/test/system/155-partial-pull.bats +++ b/test/system/155-partial-pull.bats @@ -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