load helpers_scrub function setup_file(){ skopeo --insecure-policy copy --format=oci docker://ghcr.io/project-zot/golang:1.20 oci:${TEST_DATA_DIR}/golang:1.20 } function setup() { # verify prerequisites are available if ! verify_prerequisites; then echo "oh noooooo" exit 1 fi # Setup zot server ZOT_ROOT_DIR=${BATS_FILE_TMPDIR}/zot echo ${ZOT_ROOT_DIR} ZOT_LOG_FILE=${ZOT_ROOT_DIR}/zot-log.json ZOT_CONFIG_FILE=${BATS_FILE_TMPDIR}/zot_config.json mkdir -p ${ZOT_ROOT_DIR} touch ${ZOT_LOG_FILE} cat >${ZOT_CONFIG_FILE} <