mirror of
https://github.com/ansible-collections/community.docker.git
synced 2025-12-17 12:28:55 +00:00
(cherry picked from commit bd62f82ca5)
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
b556281b5f
commit
403b4f4c64
@ -3940,6 +3940,7 @@ avoid such warnings, please quote the value.' in log_options_2.warnings"
|
|||||||
tty: yes
|
tty: yes
|
||||||
state: started
|
state: started
|
||||||
register: tty_1
|
register: tty_1
|
||||||
|
ignore_errors: true
|
||||||
|
|
||||||
- name: tty (idempotency)
|
- name: tty (idempotency)
|
||||||
docker_container:
|
docker_container:
|
||||||
@ -3949,6 +3950,7 @@ avoid such warnings, please quote the value.' in log_options_2.warnings"
|
|||||||
tty: yes
|
tty: yes
|
||||||
state: started
|
state: started
|
||||||
register: tty_2
|
register: tty_2
|
||||||
|
ignore_errors: true
|
||||||
|
|
||||||
- name: tty (change)
|
- name: tty (change)
|
||||||
docker_container:
|
docker_container:
|
||||||
@ -3959,6 +3961,7 @@ avoid such warnings, please quote the value.' in log_options_2.warnings"
|
|||||||
state: started
|
state: started
|
||||||
force_kill: yes
|
force_kill: yes
|
||||||
register: tty_3
|
register: tty_3
|
||||||
|
ignore_errors: true
|
||||||
|
|
||||||
- name: cleanup
|
- name: cleanup
|
||||||
docker_container:
|
docker_container:
|
||||||
@ -3970,8 +3973,15 @@ avoid such warnings, please quote the value.' in log_options_2.warnings"
|
|||||||
- assert:
|
- assert:
|
||||||
that:
|
that:
|
||||||
- tty_1 is changed
|
- tty_1 is changed
|
||||||
- tty_2 is not changed
|
- tty_2 is not changed and tty_2 is not failed
|
||||||
- tty_3 is changed
|
- tty_3 is changed
|
||||||
|
when: tty_1 is not failed
|
||||||
|
|
||||||
|
- assert:
|
||||||
|
that:
|
||||||
|
- "'error during container init: open /dev/pts/' in tty_1.msg"
|
||||||
|
- "': operation not permitted: ' in tty_1.msg"
|
||||||
|
when: tty_1 is failed
|
||||||
|
|
||||||
####################################################################
|
####################################################################
|
||||||
## ulimits #########################################################
|
## ulimits #########################################################
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user