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

22 lines
493 B
YAML

# 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