issue #352: add test for disconnect message.

issue260
David Wilson 6 years ago
parent d0f5671887
commit c510e58f9b

@ -1,5 +1,6 @@
---
- import_playbook: disconnect_during_module.yml
- import_playbook: exec_command.yml
- import_playbook: put_small_file.yml
- import_playbook: put_large_file.yml
- import_playbook: put_small_file.yml

@ -0,0 +1,19 @@
# issue 352: test ability to notice disconnection during a module invocation.
---
- name: integration/connection/disconnect_during_module.yml
hosts: test-targets localhost
gather_facts: no
any_errors_fatal: false
tasks:
- run_once: true # don't run against localhost
shell: |
kill -9 $PPID
register: out
ignore_errors: true
- assert:
that:
- out.msg.startswith('Mitogen was disconnected from the remote environment while a call was in-progress.')
- meta: clear_host_errors
Loading…
Cancel
Save