From 4c7c0dcd7a6584f87e748fcae0cdd3f7d91559d6 Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Tue, 1 Mar 2022 10:04:51 +1100 Subject: [PATCH] podman buildset testing: dump image list Explictly dump the image list for easier debugging, and add a little note about what's going on. Change-Id: I27b3003a63d549c48a9326c807a7f14b97ba1dad --- playbooks/functional-test/podman-buildset.yaml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/playbooks/functional-test/podman-buildset.yaml b/playbooks/functional-test/podman-buildset.yaml index 47c6776..5f118bf 100644 --- a/playbooks/functional-test/podman-buildset.yaml +++ b/playbooks/functional-test/podman-buildset.yaml @@ -61,7 +61,19 @@ - name: Print list of images command: podman image ls --all --digests --no-trunc register: image_list - failed_when: "'docker.io/test/image' not in image_list.stdout" + +# Pulling the short-name test/image should result in a pull of +# "docker.io/test/image" from the localhost:9000 mirror thanks to +# unqualified-serach-registries being set to "docker.io" in +# /etc/containers/registries.conf +- name: Show images + debug: + var: image_list.stdout + +- name: Check for test image + fail: + msg: 'docker.io/test/image not found in podman image list' + when: "'docker.io/test/image' not in image_list.stdout" - name: Remove the test image from the local cache command: podman rmi docker.io/test/image