Skip to content

Commit

Permalink
tasks: Check image pruning in run-local.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
martinpitt committed Nov 13, 2023
1 parent a5958df commit 1693d50
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tasks/run-local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,17 @@ test_image() {
cd bots
./image-download --store '$S3_URL_POD'/images/ testimage
grep -q "^world" /cache/images/testimage-*.qcow2
rm --verbose /cache/images/testimage*
'

# validate image pruning on s3
podman exec -i cockpituous-tasks sh -euxc '
cd bots
rm images/testimage
./image-prune --s3 '$S3_URL_POD'/images/ --force --checkout-only
# S3 store removed it
[ -z "$(python3 -m lib.s3 ls '$S3_URL_POD'/images/ | grep testimage)" ]
'
}

test_pr() {
Expand Down

0 comments on commit 1693d50

Please sign in to comment.