Skip to content

Commit f1a9456

Browse files
authored
Fix conditions in CI jobs (#928)
Signed-off-by: Sagi Shnaidman <[email protected]>
1 parent 35a9cc1 commit f1a9456

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

tests/integration/targets/podman_container_info/tasks/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,11 @@
8585
assert:
8686
that:
8787
- "'containers' in existing_container"
88-
- existing_container.containers
88+
- existing_container.containers | length > 0
8989
# - "existing_container.containers == podman_inspect_result"
9090
# - all_containers.containers == existing_container.containers
9191
- "'containers' in mixed_existing_container"
92-
- mixed_existing_container.containers
92+
- mixed_existing_container.containers | length > 0
9393
# - existing_container.containers == mixed_existing_container.containers
9494

9595
always:

tests/integration/targets/podman_login_info/tasks/main.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@
3737
assert:
3838
that:
3939
- "'login' in non_existing_registry"
40-
- non_existing_registry.login
40+
- non_existing_registry.login is not none
41+
- non_existing_registry.login != {}
42+
- non_existing_registry.login | length > 0
4143
- "'registry' in non_existing_registry.login"
4244
- "'username' in non_existing_registry.login"
4345
- "'logged_in' in non_existing_registry.login"
@@ -57,7 +59,9 @@
5759
assert:
5860
that:
5961
- "'login' in non_existing_authfile"
60-
- non_existing_authfile.login
62+
- non_existing_authfile.login is not none
63+
- non_existing_authfile.login != {}
64+
- non_existing_authfile.login | length > 0
6165
- "'username' in non_existing_authfile.login"
6266
- "'logged_in' in non_existing_authfile.login"
6367
- "non_existing_authfile.login.username == ''"

tests/integration/targets/podman_network_info/tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
assert:
5454
that:
5555
- "'networks' in existing_network"
56-
- existing_network.networks
56+
- existing_network.networks | length > 0
5757
- "existing_network.networks == podman_inspect_result"
5858
always:
5959

tests/integration/targets/podman_volume_info/tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
assert:
6161
that:
6262
- "'volumes' in existing_volume"
63-
- existing_volume.volumes
63+
- existing_volume.volumes | length > 0
6464
- "existing_volume.volumes == podman_inspect_result"
6565
always:
6666

0 commit comments

Comments
 (0)