Skip to content

Commit

Permalink
Merge pull request containers#24041 from edsantiago/610-search-local
Browse files Browse the repository at this point in the history
CI: format test: use local registry if available
  • Loading branch information
openshift-merge-bot[bot] authored Sep 23, 2024
2 parents b98fffd + 600634c commit edcee32
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions test/system/610-format.bats
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,14 @@ function check_subcommand() {
run_podman pod create $podname
run_podman secret create $secretname /etc/hosts

# For 'search' and 'image search': if local cache registry is available,
# use it. This bypasses quay, and thus prevents flakes.
searchargs=$IMAGE
if [[ -n "$CI_USE_REGISTRY_CACHE" ]]; then
# FIXME: someday: find a way to refactor the hardcoded port
searchargs="--tls-verify=false 127.0.0.1:60333/we/dontactuallyneed:arealimage"
fi

# Most commands can't just be run with --format; they need an argument or
# option. This table defines what those are.
extra_args_table="
Expand All @@ -145,8 +153,8 @@ secret inspect | $secretname
network inspect | podman
ps | -a
image search | $IMAGE
search | $IMAGE
image search | $searchargs
search | $searchargs
pod inspect | $podname
Expand Down

0 comments on commit edcee32

Please sign in to comment.