ansible/test/integration/targets/exos_command/tests/common/prompt.yaml
Ruturaj Vyawahare f872c61712 Added integration tests for the following modules: (#55523)
- exos_facts
- exos_command
- exos_config
2019-08-28 10:48:32 -04:00

17 lines
447 B
YAML

---
- debug: msg="START common/prompt.yaml on connection={{ ansible_connection }}"
- name: run command that requires answering a prompt
exos_command:
commands:
- command: 'clear license-info'
prompt: 'Are you sure.*'
answer: 'Yes'
register: result
- assert:
that:
- "result.changed == false"
- "result.stdout is defined"
- debug: msg="END common/prompt.yaml on connection={{ ansible_connection }}"