summaryrefslogtreecommitdiff
path: root/test/integration/targets/nxos_command/tests/nxapi/output.yaml
blob: 9eae4e515d0fee24d80091e60d9adbfeb0f15dd1 (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
---
- debug: msg="START nxapi/output.yaml"

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

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

- name: get output for multiple commands
  nxos_command:
    commands:
      - show version
      - show interface
    provider: "{{ nxapi }}"
  register: result

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

- debug: msg="END nxapi/output.yaml"