You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mitogen/tests/ansible/integration/connection/exec_command.yml

20 lines
445 B
YAML

# Test basic functinality of exec_command.
---
- name: integration/connection/exec_command.yml
hosts: test-targets
gather_facts: no
any_errors_fatal: true
tasks:
- connection_passthrough:
method: exec_command
kwargs:
cmd: echo "hello, world"
register: out
- assert:
that:
- out.result[0] == 0
- out.result[1] == "hello, world\r\n"
- out.result[2].startswith("Shared connection to ")