summaryrefslogtreecommitdiff
path: root/test/integration/targets/eos_command/tests/eapi/output.yaml
blob: 8e48e127a950d827eb902a6ed26233397fc43942 (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 eapi/output.yaml"

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

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

- name: get output for multiple commands
  eos_command:
    commands:
      - show version
      - show interfaces
    provider: "{{ eapi }}"
  register: result

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

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