tests: Ansible SSH timeout test
Also change Docker image to new 'mitogen' organization.pull/244/head
parent
3058efc80f
commit
6109de51a0
@ -0,0 +1 @@
|
|||||||
|
- import_playbook: timeouts.yml
|
@ -0,0 +1,20 @@
|
|||||||
|
# Ensure 'ssh' connections time out correctly.
|
||||||
|
|
||||||
|
- name: integration/ssh/timeouts_wrapper.yml
|
||||||
|
hosts: test-targets
|
||||||
|
tasks:
|
||||||
|
- connection: local
|
||||||
|
command: ansible slow-connect-targets -m custom_python_detect_environment #debug -a msg="--{{ 69 + 42 }}--"
|
||||||
|
register: out
|
||||||
|
ignore_errors: true
|
||||||
|
when: is_mitogen
|
||||||
|
|
||||||
|
- assert:
|
||||||
|
that:
|
||||||
|
- |
|
||||||
|
'"changed": false' in out.stdout
|
||||||
|
- |
|
||||||
|
'"unreachable": true' in out.stdout
|
||||||
|
- |
|
||||||
|
'"msg": "Connection timed out."' in out.stdout
|
||||||
|
when: is_mitogen
|
@ -0,0 +1,3 @@
|
|||||||
|
|
||||||
|
# mitogen__slow_user takes forever to log in.
|
||||||
|
sleep 10
|
Loading…
Reference in New Issue