diff options
Diffstat (limited to 'test/integration/targets/vyos_command/tests/cli/output.yaml')
-rw-r--r-- | test/integration/targets/vyos_command/tests/cli/output.yaml | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/test/integration/targets/vyos_command/tests/cli/output.yaml b/test/integration/targets/vyos_command/tests/cli/output.yaml new file mode 100644 index 0000000000..ba2a38aacf --- /dev/null +++ b/test/integration/targets/vyos_command/tests/cli/output.yaml @@ -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" |