load helpers_metrics function setup_file() { # verify prerequisites are available if ! verify_prerequisites; then echo "oh noooooo" exit 1 fi # Download test data to folder common for the entire suite, not just this file skopeo --insecure-policy copy --format=oci docker://ghcr.io/project-zot/golang:1.17 oci:${TEST_DATA_DIR}/golang:1.17 # 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} <