From 73eef25681afcacc372f16ac5159743ab7b373ec Mon Sep 17 00:00:00 2001 From: Ramkumar Chinchani <45800463+rchincha@users.noreply.github.com> Date: Mon, 13 Oct 2025 22:49:06 -0700 Subject: [PATCH] ci: enable fips140 blackbox test (#3460) Signed-off-by: Ramkumar Chinchani --- test/blackbox/ci.sh | 3 ++- test/blackbox/fips140.bats | 6 ++++-- test/blackbox/helpers_scrub.bash | 5 ----- test/blackbox/helpers_zot.bash | 5 +++++ test/ports.json | 8 +++++++- 5 files changed, 18 insertions(+), 9 deletions(-) diff --git a/test/blackbox/ci.sh b/test/blackbox/ci.sh index 1cf532d7..832c4e1d 100755 --- a/test/blackbox/ci.sh +++ b/test/blackbox/ci.sh @@ -14,7 +14,8 @@ ${SCRIPTPATH}/setup_images.sh tests=("pushpull" "pushpull_authn" "delete_images" "referrers" "metadata" "anonymous_policy" "annotations" "detect_manifest_collision" "cve" "sync" "sync_docker" "sync_replica_cluster" "scrub" "garbage_collect" "metrics" "metrics_minimal" "multiarch_index" "docker_compat" "redis_local" "redis_session_store" - "events_nats" "events_http" "events_nats_lint_failure" "events_http_lint_failure" "events_sink_failure" "events_config_decoding") + "events_nats" "events_http" "events_nats_lint_failure" "events_http_lint_failure" "events_sink_failure" "events_config_decoding" + "fips140") for test in ${tests[*]}; do ${BATS} ${BATS_FLAGS} ${SCRIPTPATH}/${test}.bats > ${test}.log & pids+=($!) diff --git a/test/blackbox/fips140.bats b/test/blackbox/fips140.bats index 88400180..7adfc152 100644 --- a/test/blackbox/fips140.bats +++ b/test/blackbox/fips140.bats @@ -29,11 +29,13 @@ function setup_file() { # Setup zot server local zot_root_dir=${BATS_FILE_TMPDIR}/zot local zot_config_file=${BATS_FILE_TMPDIR}/zot_config.json + ZOT_LOG_FILE=${zot_root_dir}/zot-log.json local oci_data_dir=${BATS_FILE_TMPDIR}/oci mkdir -p ${zot_root_dir} mkdir -p ${oci_data_dir} zot_port=$(get_free_port_for_service "zot") echo ${zot_port} > ${BATS_FILE_TMPDIR}/zot.port + touch ${ZOT_LOG_FILE} cat > ${zot_config_file}<