File: exec_command.yml

package info (click to toggle)
python-mitogen 0.3.26-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,456 kB
  • sloc: python: 22,134; sh: 183; makefile: 74; perl: 19; ansic: 18
file content (22 lines) | stat: -rw-r--r-- 505 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Test basic functinality of exec_command.
---

- name: integration/connection/exec_command.yml
  hosts: test-targets
  gather_facts: no
  tasks:
  - connection_passthrough:
      method: exec_command
      kwargs:
        cmd: echo "hello, world"
    register: out

  - assert:
      that:
      - out.result[0] == 0
      - out.result[1].decode() == "hello, world\r\n"
      - out.result[2].decode().startswith("Shared connection to ")
      fail_msg: |
        out={{ out }}
  tags:
    - exec_command