mirror of
https://github.com/ansible-collections/community.docker.git
synced 2025-12-17 04:18:42 +00:00
Fix docker_swarm_service tests. (#104)
This commit is contained in:
parent
bfda6439ba
commit
f338f3a5eb
@ -105,7 +105,8 @@
|
|||||||
image: "{{ docker_test_image_alpine }}"
|
image: "{{ docker_test_image_alpine }}"
|
||||||
resolve_image: no
|
resolve_image: no
|
||||||
command: '/bin/sh -v -c "sleep 10m"'
|
command: '/bin/sh -v -c "sleep 10m"'
|
||||||
update_failure_action: "rollback"
|
update_config:
|
||||||
|
failure_action: "rollback"
|
||||||
register: update_failure_action_5
|
register: update_failure_action_5
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
|
|
||||||
@ -124,6 +125,7 @@
|
|||||||
- assert:
|
- assert:
|
||||||
that:
|
that:
|
||||||
- update_failure_action_4 is changed
|
- update_failure_action_4 is changed
|
||||||
|
- update_failure_action_5 is not failed
|
||||||
- update_failure_action_5 is not changed
|
- update_failure_action_5 is not changed
|
||||||
when: docker_api_version is version('1.28', '>=') and docker_py_version is version('3.5.0', '>=')
|
when: docker_api_version is version('1.28', '>=') and docker_py_version is version('3.5.0', '>=')
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user