summaryrefslogtreecommitdiff
path: root/test/integration/targets/ios_command/tests/cli/invalid.yaml
blob: 597d50746e91f7a2796ae32ed1664028a13f6f4c (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 cli/invalid.yaml"

- name: run invalid command
  ios_command:
    commands: ['show foo']
    provider: "{{ cli }}"
  register: result
  ignore_errors: yes

- assert:
    that:
      - "result.failed"

- name: run commands that include invalid command
  ios_command:
    commands:
      - show version
      - show foo
    provider: "{{ cli }}"
  register: result
  ignore_errors: yes

- assert:
    that:
      - "result.failed"

- debug: msg="END cli/invalid.yaml"