File tree Expand file tree Collapse file tree 3 files changed +24
-0
lines changed
Expand file tree Collapse file tree 3 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,14 @@ function zot_rel_serve() {
5151 echo " ERROR: Checksum verification failed for zot-${OS} -${ARCH} "
5252 exit 1
5353 fi
54+ if ! cat " ${checksum_file} " | sha256sum -c --status; then
55+ echo " ERROR: Checksum verification failed for zot-${OS} -${ARCH} "
56+ exit 1
57+ fi
58+ if ! cat " ${checksum_file} " | sha256sum -c --status; then
59+ echo " ERROR: Checksum verification failed for zot-${OS} -${ARCH} "
60+ exit 1
61+ fi
5462 chmod +x " ${zot_path} "
5563 fi
5664
@@ -82,6 +90,14 @@ function zot_rel_min_serve() {
8290 echo " ERROR: Checksum verification failed for zot-${OS} -${ARCH} -minimal"
8391 exit 1
8492 fi
93+ if ! cat " ${checksum_file} " | sha256sum -c --status; then
94+ echo " ERROR: Checksum verification failed for zot-${OS} -${ARCH} -minimal"
95+ exit 1
96+ fi
97+ if ! cat " ${checksum_file} " | sha256sum -c --status; then
98+ echo " ERROR: Checksum verification failed for zot-${OS} -${ARCH} -minimal"
99+ exit 1
100+ fi
85101 chmod +x " ${zot_path} "
86102 fi
87103
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