mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
Migrate Network Tests into ansible/ansible (#18233)
* Docs Networking tests * Copy networking tests from test-network-modules * Networking transport settings - group_vars * Network playbooks * Debug should be off by default * Update nxos.yaml * Remove items from top level * Use dependencies, not pre-tasks * Remove trailing blank lines * Remove backup files * newlines
This commit is contained in:
30
test/integration/targets/vyos_command/tests/cli/output.yaml
Normal file
30
test/integration/targets/vyos_command/tests/cli/output.yaml
Normal file
@@ -0,0 +1,30 @@
|
||||
---
|
||||
- debug: msg="START cli/output.yaml"
|
||||
|
||||
- name: get output for single command
|
||||
vyos_command:
|
||||
commands: show version
|
||||
provider: "{{ cli }}"
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- result.changed == false
|
||||
- result.stdout is defined
|
||||
- result.stdout_lines is defined
|
||||
|
||||
- name: get output for multiple commands
|
||||
vyos_command:
|
||||
commands:
|
||||
- show version
|
||||
- show interfaces
|
||||
provider: "{{ cli }}"
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- result.changed == false
|
||||
- result.stdout is defined
|
||||
- result.stdout | length == 2
|
||||
|
||||
- debug: msg="END cli/output.yaml"
|
||||
Reference in New Issue
Block a user