Debian Codegraph @

ansible_collections/containers/podman/tests/integration/targets/podman_image/tasks/idem_push.yml

raw
1 ---
2 - containers.podman.podman_image:
3 name: testimage2
4 pull: false
5 push: true
6 ignore_errors: true
7 register: img_result1
8
9 - name: Check outputs
10 assert:
11 that:
12 - img_result1 is failed
13 - "'Destination must be a full URL or path to a directory' in img_result1.msg"
14
15 - containers.podman.podman_image:
16 name: quay.io/testing/testimage
17 pull: false
18 push: true
19 ignore_errors: true
20 register: img_result2
21
22 - name: Check outputs
23 assert:
24 that:
25 - "'authentication required' in img_result2.stderr"
26 - "'push quay.io/testing/testimage:latest quay.io/testing/testimage:latest' in img_result2.actions"
27
28 - containers.podman.podman_image:
29 name: quay.io/testing/testimage:draft
30 pull: false
31 push: true
32 ignore_errors: true
33 register: img_result2a
34
35 - name: Check outputs
36 assert:
37 that:
38 - "'authentication required' in img_result2a.stderr"
39 - "'push quay.io/testing/testimage:draft quay.io/testing/testimage:draft' in img_result2a.actions"
40
41 - containers.podman.podman_image:
42 name: quay.io/testing/testimage
43 pull: false
44 push: true
45 push_args:
46 dest: quay.io/testing/testimage
47 ignore_errors: true
48 register: img_result3
49
50 - name: Check outputs
51 assert:
52 that:
53 - "'authentication required' in img_result3.stderr"
54 - "'push quay.io/testing/testimage:latest quay.io/testing/testimage' in img_result3.actions"
55
56 - containers.podman.podman_image:
57 name: quay.io/testing/testimage:draft
58 pull: false
59 push: true
60 push_args:
61 dest: quay.io/testing/testimage
62 ignore_errors: true
63 register: img_result3a
64
65 - name: Check outputs
66 assert:
67 that:
68 - "'authentication required' in img_result3a.stderr"
69 - "'push quay.io/testing/testimage:draft quay.io/testing/testimage' in img_result3a.actions"
70
71 - containers.podman.podman_image:
72 name: quay.io/testing/testimage:draft
73 pull: false
74 push: true
75 push_args:
76 dest: quay.io/testing/testimage:nodraft
77 ignore_errors: true
78 register: img_result3b
79
80 - name: Check outputs
81 assert:
82 that:
83 - "'authentication required' in img_result3b.stderr"
84 - "'push quay.io/testing/testimage:draft quay.io/testing/testimage:nodraft' in img_result3b.actions"
85
86 - containers.podman.podman_image:
87 name: testimage2
88 tag: testtag
89 pull: false
90 push: true
91 push_args:
92 dest: quay.io/testing/testimage
93 ignore_errors: true
94 register: img_result4
95
96 - name: Check outputs
97 assert:
98 that:
99 - "'authentication required' in img_result4.stderr"
100 - "'push testimage2:testtag quay.io/testing/testimage' in img_result4.actions"
101
102 - containers.podman.podman_image:
103 name: testimage2
104 tag: testtag
105 pull: false
106 push: true
107 push_args:
108 dest: quay.io/testing
109 ignore_errors: true
110 register: img_result4a
111
112 - name: Check outputs
113 assert:
114 that:
115 - "'authentication required' in img_result4a.stderr"
116 - "'push testimage2:testtag quay.io/testing/testimage2:testtag' in img_result4a.actions"
117
118 - containers.podman.podman_image:
119 name: testimage2:testtag
120 pull: false
121 push: true
122 push_args:
123 dest: quay.io/testing/
124 ignore_errors: true
125 register: img_result4b
126
127 - name: Check outputs
128 assert:
129 that:
130 - "'authentication required' in img_result4b.stderr"
131 - "'push testimage2:testtag quay.io/testing/testimage2:testtag' in img_result4b.actions"
132
133 - containers.podman.podman_image:
134 name: testimage2
135 pull: false
136 push: true
137 push_args:
138 dest: quay.io/testing/
139 ignore_errors: true
140 register: img_result4c
141
142 - name: Check outputs
143 assert:
144 that:
145 - "'authentication required' in img_result4c.stderr"
146 - "'push testimage2:latest quay.io/testing/testimage2:latest' in img_result4c.actions"
147
148 - containers.podman.podman_image:
149 name: testimage2
150 pull: false
151 push: true
152 push_args:
153 dest: /tmp/testimage-dir
154 transport: dir
155 ignore_errors: true
156 register: img_result5
157
158 - name: Check outputs
159 assert:
160 that:
161 - img_result5 is changed
162 - "'push testimage2:latest dir:/tmp/testimage-dir' in img_result5.actions"
163
164 - containers.podman.podman_image:
165 name: testimage2
166 pull: false
167 push: true
168 push_args:
169 dest: dir:/tmp/testimage-dir1
170 ignore_errors: true
171 register: img_result6
172
173 - name: Check outputs
174 assert:
175 that:
176 - img_result6 is changed
177 - "'push testimage2:latest dir:/tmp/testimage-dir1' in img_result6.actions"
178
179 - name: Remove directories
180 file:
181 path: "{{ item }}"
182 state: absent
183 loop:
184 - /tmp/test-docker-arch
185 - /tmp/test-docker-arch1
186
187 - containers.podman.podman_image:
188 name: testimage2
189 pull: false
190 push: true
191 push_args:
192 dest: /tmp/test-docker-arch
193 transport: docker-archive
194 ignore_errors: true
195 register: img_result7
196
197 - name: Check outputs
198 assert:
199 that:
200 - img_result7 is changed
201 - "'push testimage2:latest docker-archive:/tmp/test-docker-arch' in img_result7.actions"
202
203 - containers.podman.podman_image:
204 name: testimage2
205 pull: false
206 push: true
207 push_args:
208 dest: docker-archive:/tmp/test-docker-arch1
209 ignore_errors: true
210 register: img_result8
211
212 - name: Check outputs
213 assert:
214 that:
215 - img_result8 is changed
216 - "'push testimage2:latest docker-archive:/tmp/test-docker-arch1' in img_result8.actions"
217
218 - containers.podman.podman_image:
219 name: testimage2
220 pull: false
221 push: true
222 push_args:
223 dest: /tmp/test-oci-arch
224 transport: oci-archive
225 ignore_errors: true
226 register: img_result9
227
228 - name: Check outputs
229 assert:
230 that:
231 - img_result9 is changed
232 - "'push testimage2:latest oci-archive:/tmp/test-oci-arch' in img_result9.actions"
233
234 - containers.podman.podman_image:
235 name: testimage2
236 pull: false
237 push: true
238 push_args:
239 dest: oci-archive:/tmp/test-oci-arch1
240 ignore_errors: true
241 register: img_result10
242
243 - name: Check outputs
244 assert:
245 that:
246 - img_result10 is changed
247 - "'push testimage2:latest oci-archive:/tmp/test-oci-arch1' in img_result10.actions"
248
249 - containers.podman.podman_image:
250 name: testimage2
251 pull: false
252 push: true
253 push_args:
254 dest: quay.io/testing/testimage1
255 transport: docker
256 ignore_errors: true
257 register: img_result11
258
259 - name: Check outputs
260 assert:
261 that:
262 - "'authentication required' in img_result11.stderr"
263 - "'push testimage2:latest docker://quay.io/testing/testimage1' in img_result11.actions"
264
265 - containers.podman.podman_image:
266 name: testimage2
267 pull: false
268 push: true
269 push_args:
270 dest: docker://quay.io/testing/testimage22
271 ignore_errors: true
272 register: img_result12
273
274 - name: Check outputs
275 assert:
276 that:
277 - "'authentication required' in img_result12.stderr"
278 - "'push testimage2:latest docker://quay.io/testing/testimage22' in img_result12.actions"
279
280 - containers.podman.podman_image:
281 name: testimage2
282 pull: false
283 push: true
284 push_args:
285 dest: dockerimage
286 transport: docker-daemon
287 ignore_errors: true
288 register: img_result13
289
290 - name: Check outputs
291 assert:
292 that:
293 # Depends on docker availability
294 # - img_result13 is changed
295 - "'push testimage2:latest docker-daemon:dockerimage:latest' in img_result13.actions"
296
297 - containers.podman.podman_image:
298 name: testimage2
299 pull: false
300 push: true
301 push_args:
302 dest: docker-daemon:dockerimage2
303 ignore_errors: true
304 register: img_result14
305
306 - name: Check outputs
307 assert:
308 that:
309 # Depends on docker availability
310 # - img_result14 is failure
311 - "'push testimage2:latest docker-daemon:dockerimage2' in img_result14.actions"
312
313 - containers.podman.podman_image:
314 name: testimage2
315 pull: false
316 push: true
317 push_args:
318 dest: dockerimage:tagged1
319 transport: docker-daemon
320 ignore_errors: true
321 register: img_result15
322
323 - name: Check outputs
324 assert:
325 that:
326 # Depends on docker availability
327 # - img_result15 is success
328 - "'push testimage2:latest docker-daemon:dockerimage:tagged1' in img_result15.actions"
329
330 - containers.podman.podman_image:
331 name: testimage2
332 pull: false
333 push: true
334 push_args:
335 dest: docker-daemon:dockerimage:tagged
336 ignore_errors: true
337 register: img_result16
338
339 - name: Check outputs
340 assert:
341 that:
342 # Depends on docker availability
343 # - img_result16 is success
344 - "'push testimage2:latest docker-daemon:dockerimage:tagged' in img_result16.actions"
345
346 - containers.podman.podman_image:
347 name: quay.io/testing/testimage
348 pull: false
349 push: true
350 push_args:
351 dest: /tmp/testimage-dir25
352 transport: dir
353 ignore_errors: true
354 register: img_result17
355
356 - name: Check outputs
357 assert:
358 that:
359 - img_result17 is success
360 - "'push quay.io/testing/testimage:latest dir:/tmp/testimage-dir25' in img_result17.actions"
361
362 - containers.podman.podman_image:
363 name: quay.io/testing/testimage
364 pull: false
365 push: true
366 push_args:
367 dest: dir:/tmp/testimage-dir15
368 ignore_errors: true
369 register: img_result18
370
371 - name: Check outputs
372 assert:
373 that:
374 - img_result18 is success
375 - "'push quay.io/testing/testimage:latest dir:/tmp/testimage-dir15' in img_result18.actions"
376
377 - name: Remove directories for docker-archive
378 file:
379 path: "{{ item }}"
380 state: absent
381 loop:
382 - /tmp/test-docker-arch5
383 - /tmp/test-docker-arch15
384
385 - containers.podman.podman_image:
386 name: quay.io/testing/testimage
387 pull: false
388 push: true
389 push_args:
390 dest: /tmp/test-docker-arch5
391 transport: docker-archive
392 ignore_errors: true
393 register: img_result19
394
395 - name: Check outputs
396 assert:
397 that:
398 - img_result19 is success
399 - "'push quay.io/testing/testimage:latest docker-archive:/tmp/test-docker-arch5' in img_result19.actions"
400
401 - containers.podman.podman_image:
402 name: quay.io/testing/testimage
403 pull: false
404 push: true
405 push_args:
406 dest: docker-archive:/tmp/test-docker-arch15
407 ignore_errors: true
408 register: img_result20
409
410 - name: Check outputs
411 assert:
412 that:
413 - img_result20 is success
414 - "'push quay.io/testing/testimage:latest docker-archive:/tmp/test-docker-arch15' in img_result20.actions"
415
416 - containers.podman.podman_image:
417 name: quay.io/testing/testimage
418 pull: false
419 push: true
420 push_args:
421 dest: /tmp/test-oci-arch5
422 transport: oci-archive
423 ignore_errors: true
424 register: img_result21
425
426 - name: Check outputs
427 assert:
428 that:
429 - img_result21 is success
430 - "'push quay.io/testing/testimage:latest oci-archive:/tmp/test-oci-arch5' in img_result21.actions"
431
432 - containers.podman.podman_image:
433 name: quay.io/testing/testimage
434 pull: false
435 push: true
436 push_args:
437 dest: oci-archive:/tmp/test-oci-arch15
438 ignore_errors: true
439 register: img_result22
440
441 - name: Check outputs
442 assert:
443 that:
444 - img_result22 is success
445 - "'push quay.io/testing/testimage:latest oci-archive:/tmp/test-oci-arch15' in img_result22.actions"
446
447 - containers.podman.podman_image:
448 name: quay.io/testing/testimage
449 pull: false
450 push: true
451 push_args:
452 dest: quay.io/testing/testimage5
453 transport: docker
454 ignore_errors: true
455 register: img_result23
456
457 - name: Check outputs
458 assert:
459 that:
460 - "'authentication required' in img_result23.stderr"
461 - "'push quay.io/testing/testimage:latest docker://quay.io/testing/testimage5' in img_result23.actions"
462
463 - containers.podman.podman_image:
464 name: quay.io/testing/testimage
465 pull: false
466 push: true
467 push_args:
468 dest: docker://quay.io/testing/testimage22
469 ignore_errors: true
470 register: img_result24
471
472 - name: Check outputs
473 assert:
474 that:
475 - "'authentication required' in img_result24.stderr"
476 - "'push quay.io/testing/testimage:latest docker://quay.io/testing/testimage22' in img_result24.actions"
477
478 - containers.podman.podman_image:
479 name: quay.io/testing/testimage
480 pull: false
481 push: true
482 push_args:
483 dest: dockerimage5
484 transport: docker-daemon
485 ignore_errors: true
486 register: img_result25
487
488 - name: Check outputs
489 assert:
490 that:
491 # Depends on docker availability
492 # - img_result25 is success
493 - "'push quay.io/testing/testimage:latest docker-daemon:dockerimage5:latest' in img_result25.actions"
494
495 - containers.podman.podman_image:
496 name: quay.io/testing/testimage
497 pull: false
498 push: true
499 push_args:
500 dest: docker-daemon:dockerimage25
501 ignore_errors: true
502 register: img_result26
503
504 - name: Check outputs
505 assert:
506 that:
507 # Depends on docker availability
508 # - img_result26 is failed
509 - "'push quay.io/testing/testimage:latest docker-daemon:dockerimage25' in img_result26.actions"
510
511 - containers.podman.podman_image:
512 name: quay.io/testing/testimage
513 pull: false
514 push: true
515 push_args:
516 dest: dockerimage:tagged15
517 transport: docker-daemon
518 ignore_errors: true
519 register: img_result27
520
521 - name: Check outputs
522 assert:
523 that:
524 # Depends on docker availability
525 # - img_result27 is success
526 - "'push quay.io/testing/testimage:latest docker-daemon:dockerimage:tagged15' in img_result27.actions"
527
528 - containers.podman.podman_image:
529 name: quay.io/testing/testimage
530 pull: false
531 push: true
532 push_args:
533 dest: docker-daemon:dockerimage:tagged5
534 ignore_errors: true
535 register: img_result28
536
537 - name: Check outputs
538 assert:
539 that:
540 # Depends on docker availability
541 # - img_result28 is success
542 - "'push quay.io/testing/testimage:latest docker-daemon:dockerimage:tagged5' in img_result28.actions"