1
0
Fork 0
mirror of https://github.com/containers/ansible-podman-collections.git synced 2026-02-04 07:11:49 +00:00

Fix CI of Podman Search module (#985)

Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
This commit is contained in:
Sergey 2025-10-23 18:01:44 +03:00 committed by GitHub
parent 21b0097db0
commit ee8a43d8be
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -37,20 +37,20 @@
- name: Search for a specific image
containers.podman.podman_search:
term: registry.access.redhat.com/rhel7/rsyslog
term: docker.io/library/python
executable: "{{ test_executable | default('podman') }}"
register: info_2
- name: Check result for matching image
assert:
that:
- info_2.images | length == 1
- info_2.images[0].Index == "registry.access.redhat.com"
- info_2.images[0].Name == "registry.access.redhat.com/rhel7/rsyslog"
- info_2.images | length >= 0
- info_2.images[0].Index == "docker.io"
- info_2.images[0].Name == "docker.io/library/python"
- name: Search for specific image tags
containers.podman.podman_search:
term: registry.access.redhat.com/rhel7/rsyslog
term: docker.io/library/python
list_tags: true
executable: "{{ test_executable | default('podman') }}"
register: info_3
@ -58,5 +58,5 @@
- name: Check result for image tags
assert:
that:
- info_3.images | length == 1
- info_3.images | length >= 0
- info_3.images[0].Tags | length > 0