File: timeouts.yml

package info (click to toggle)
python-mitogen 0.3.3-9%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 6,816 kB
  • sloc: python: 22,086; sh: 171; makefile: 74; perl: 19; ansic: 18; javascript: 5
file content (30 lines) | stat: -rw-r--r-- 754 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Ensure 'ssh' connections time out correctly.

- name: integration/ssh/timeouts.yml
  hosts: test-targets
  tasks:
    - connection: local
      command: |
        ansible -vvv
        -i "{{MITOGEN_INVENTORY_FILE}}"
        test-targets
        -m custom_python_detect_environment
        -e ansible_user=mitogen__slow_user -e ansible_password=slow_user_password
      args:
        chdir: ../..
      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
        fail_msg: out={{out}}
      when: is_mitogen
  tags:
    - timeouts