|
108 | 108 | fail_msg: Pulling image test failed! |
109 | 109 | success_msg: Pulling image test passed! |
110 | 110 |
|
| 111 | + - name: Ensure image doesn't exist - TLS verify OFF |
| 112 | + containers.podman.podman_image: |
| 113 | + executable: "{{ test_executable | default('podman') }}" |
| 114 | + name: alpine:3.20 |
| 115 | + state: absent |
| 116 | + |
| 117 | + - name: Check pulling image - TLS verify OFF |
| 118 | + containers.podman.podman_container: |
| 119 | + executable: "{{ test_executable | default('podman') }}" |
| 120 | + name: container_tls |
| 121 | + image: alpine:3.20 |
| 122 | + state: started |
| 123 | + command: sleep 1d |
| 124 | + tls_verify: false |
| 125 | + register: image_tls |
| 126 | + |
| 127 | + - name: Check output is correct - TLS verify OFF |
| 128 | + assert: |
| 129 | + that: |
| 130 | + - image_tls.podman_actions | select('search', '--tls-verify=False') | list | length > 0 |
| 131 | + |
| 132 | + - name: Check using already pulled image - TLS verify OFF |
| 133 | + containers.podman.podman_container: |
| 134 | + executable: "{{ test_executable | default('podman') }}" |
| 135 | + name: container2_tls |
| 136 | + image: alpine:3.20 |
| 137 | + state: started |
| 138 | + command: sleep 1d |
| 139 | + tls_verify: false |
| 140 | + register: image2_tls |
| 141 | + |
| 142 | + - name: Check output is correct - TLS verify OFF |
| 143 | + assert: |
| 144 | + that: |
| 145 | + - image_tls is changed |
| 146 | + - image_tls.container is defined |
| 147 | + - image_tls.container['State']['Running'] |
| 148 | + - "'pulled image alpine:3.20' in image_tls.actions" |
| 149 | + - "'started container_tls' in image_tls.actions" |
| 150 | + - image2_tls is changed |
| 151 | + - image2_tls.container is defined |
| 152 | + - image2_tls.container['State']['Running'] |
| 153 | + - "'pulled image alpine:3.20' not in image2_tls.actions" |
| 154 | + - "'started container2_tls' in image2_tls.actions" |
| 155 | + fail_msg: Pulling image test failed! |
| 156 | + success_msg: Pulling image test passed! |
| 157 | + |
111 | 158 | - name: Check failed image pull |
112 | 159 | containers.podman.podman_container: |
113 | 160 | executable: "{{ test_executable | default('podman') }}" |
|
1368 | 1415 | - "container2" |
1369 | 1416 | - "container3" |
1370 | 1417 | - "testidem-pod" |
| 1418 | + - "container_tls" |
1371 | 1419 |
|
1372 | 1420 | - name: Remove pod |
1373 | 1421 | shell: podman pod rm -f testidempod |
|
0 commit comments