From d04aca3dc9e60c14bb5ccd1a5fbe2bd24917fbe9 Mon Sep 17 00:00:00 2001 From: Ramkumar Chinchani Date: Tue, 17 Sep 2024 20:50:56 +0000 Subject: [PATCH] add --- test/whiteout.bats | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/whiteout.bats b/test/whiteout.bats index 2e315656..b297f320 100644 --- a/test/whiteout.bats +++ b/test/whiteout.bats @@ -78,4 +78,10 @@ EOF ld=$(cat oci/blobs/sha256/"$md" | jq .layers[-1].digest | sed s/sha256://g | tr -d \") run "bsdtar -tvf oci/blobs/sha256/$ld | grep '.wh.a1'" [ "$status" -ne 0 ] + + # "fulldir" should have a whiteout entry for /a1 + md=$(cat oci/index.json | jq .manifests[3].digest | sed s/sha256://g | tr -d \") + ld=$(cat oci/blobs/sha256/"$md" | jq .layers[-1].digest | sed s/sha256://g | tr -d \") + run "bsdtar -tvf oci/blobs/sha256/$ld | grep '.wh.a1'" + [ "$status" -eq 0 ] }