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

Fix conditions in CI jobs

Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
This commit is contained in:
Sagi Shnaidman 2025-04-27 18:25:09 +03:00
parent 35a9cc1f93
commit 32ce2929bc
4 changed files with 10 additions and 6 deletions

View file

@ -85,11 +85,11 @@
assert:
that:
- "'containers' in existing_container"
- existing_container.containers
- existing_container.containers | length > 0
# - "existing_container.containers == podman_inspect_result"
# - all_containers.containers == existing_container.containers
- "'containers' in mixed_existing_container"
- mixed_existing_container.containers
- mixed_existing_container.containers | length > 0
# - existing_container.containers == mixed_existing_container.containers
always:

View file

@ -37,7 +37,9 @@
assert:
that:
- "'login' in non_existing_registry"
- non_existing_registry.login
- non_existing_registry.login is not none
- non_existing_registry.login != {}
- non_existing_registry.login | length > 0
- "'registry' in non_existing_registry.login"
- "'username' in non_existing_registry.login"
- "'logged_in' in non_existing_registry.login"
@ -57,7 +59,9 @@
assert:
that:
- "'login' in non_existing_authfile"
- non_existing_authfile.login
- non_existing_authfile.login is not none
- non_existing_authfile.login != {}
- non_existing_authfile.login | length > 0
- "'username' in non_existing_authfile.login"
- "'logged_in' in non_existing_authfile.login"
- "non_existing_authfile.login.username == ''"

View file

@ -53,7 +53,7 @@
assert:
that:
- "'networks' in existing_network"
- existing_network.networks
- existing_network.networks | length > 0
- "existing_network.networks == podman_inspect_result"
always:

View file

@ -60,7 +60,7 @@
assert:
that:
- "'volumes' in existing_volume"
- existing_volume.volumes
- existing_volume.volumes | length > 0
- "existing_volume.volumes == podman_inspect_result"
always: