File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments