File tree Expand file tree Collapse file tree 5 files changed +1491
-1
lines changed
Expand file tree Collapse file tree 5 files changed +1491
-1
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ tests=("pushpull" "pushpull_authn" "delete_images" "referrers" "metadata" "anony
1515 " annotations" " detect_manifest_collision" " cve" " sync" " sync_docker" " sync_replica_cluster"
1616 " scrub" " garbage_collect" " metrics" " metrics_minimal" " multiarch_index" " docker_compat" " redis_local" " redis_session_store"
1717 " events_nats" " events_http" " events_nats_lint_failure" " events_http_lint_failure" " events_sink_failure" " events_config_decoding"
18- " fips140" " fips140_authn" " openid_claim_mapping" )
18+ " fips140" " fips140_authn" " openid_claim_mapping" " upgrade " " upgrade_minimal " )
1919
2020for test in ${tests[*]} ; do
2121 ${BATS} ${BATS_FLAGS} ${SCRIPTPATH} /${test} .bats > ${test} .log & pids+=($! )
Original file line number Diff line number Diff line change @@ -28,6 +28,46 @@ function zot_serve() {
2828 echo -n " $! " >> ${BATS_FILE_TMPDIR} /zot.pid
2929}
3030
31+ function zot_rel_serve() {
32+ local config_file
33+ if [ -n " ${2} " ]; then
34+ config_file=${2}
35+ else
36+ config_file=${1}
37+ fi
38+
39+ local zot_path=${BATS_FILE_TMPDIR} /zot-rel-${OS} -${ARCH}
40+
41+ if [ ! -f " ${zot_path} " ]; then
42+ curl -L -o " ${zot_path} " https://github.com/project-zot/zot/releases/latest/download/zot-${OS} -${ARCH}
43+ chmod +x " ${zot_path} "
44+ fi
45+
46+ ${zot_path} serve ${config_file} &
47+ # zot.pid file keeps a list of zot server PIDs (in case multiple zot servers are started)
48+ echo -n " $! " >> ${BATS_FILE_TMPDIR} /zot.pid
49+ }
50+
51+ function zot_rel_min_serve() {
52+ local config_file
53+ if [ -n " ${2} " ]; then
54+ config_file=${2}
55+ else
56+ config_file=${1}
57+ fi
58+
59+ local zot_path=${BATS_FILE_TMPDIR} /zot-rel-${OS} -${ARCH} -minimal
60+
61+ if [ ! -f " ${zot_path} " ]; then
62+ curl -L -o " ${zot_path} " https://github.com/project-zot/zot/releases/latest/download/zot-${OS} -${ARCH} -minimal
63+ chmod +x " ${zot_path} "
64+ fi
65+
66+ ${zot_path} serve ${config_file} &
67+ # zot.pid file keeps a list of zot server PIDs (in case multiple zot servers are started)
68+ echo -n " $! " >> ${BATS_FILE_TMPDIR} /zot.pid
69+ }
70+
3171# stops all zot instances started by the test
3272function zot_stop_all() {
3373 if [ -f " ${BATS_FILE_TMPDIR} /zot.pid" ]; then
You can’t perform that action at this time.
0 commit comments