Skip to content

Commit ef870cb

Browse files
committed
fix: address comments
Signed-off-by: Ramkumar Chinchani <[email protected]>
1 parent 5873c6a commit ef870cb

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

test/blackbox/upgrade.bats

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,10 @@ DOCKERFILE
442442

443443
@test "[new] push image" {
444444
zot_port=`cat ${BATS_FILE_TMPDIR}/zot.port`
445+
# first check existing images
446+
run curl http://127.0.0.1:${zot_port}/v2/_catalog
447+
[ "$status" -eq 0 ]
448+
[ $(echo "${lines[-1]}" | jq 'any(.repositories[]; . == "golang")') = true ]
445449
run skopeo --insecure-policy copy --dest-tls-verify=false \
446450
oci:${TEST_DATA_DIR}/golang:1.20 \
447451
docker://127.0.0.1:${zot_port}/golang:1.20

test/blackbox/upgrade_minimal.bats

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,10 @@ DOCKERFILE
401401

402402
@test "[new] push image" {
403403
zot_port=`cat ${BATS_FILE_TMPDIR}/zot.port`
404+
# first check existing images
405+
run curl http://127.0.0.1:${zot_port}/v2/_catalog
406+
[ "$status" -eq 0 ]
407+
[ $(echo "${lines[-1]}" | jq 'any(.repositories[]; . == "golang")') = true ]
404408
run skopeo --insecure-policy copy --dest-tls-verify=false \
405409
oci:${TEST_DATA_DIR}/golang:1.20 \
406410
docker://127.0.0.1:${zot_port}/golang:1.20

0 commit comments

Comments
 (0)