summaryrefslogtreecommitdiff
path: root/test/integration/targets/dellos9_command/tests/cli/output.yaml
blob: 151c1b8805c1ae5265e3c0bd7c9a4198095e9910 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
---
- debug: msg="START cli/output.yaml"

- name: get output for single command
  dellos9_command:
    commands: ['show version']
    provider: "{{ cli }}"
  register: result

- assert:
    that:
      - "result.changed == false"
      - "result.stdout is defined"

- name: get output for multiple commands
  dellos9_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"