summaryrefslogtreecommitdiff
path: root/test/integration/targets/vyos_command/tests/cli/invalid.yaml
blob: 672f6e8180fb922638b6d52414c17892efdd370e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
---
- debug: msg="START cli/invalid.yaml on connection={{ ansible_connection }}"

- name: run invalid command
  vyos.vyos.vyos_command:
    commands: show foo
  register: result
  ignore_errors: yes

- assert: { that: result.failed }

- name: run commands that include invalid command
  vyos.vyos.vyos_command:
    commands:
      - show version
      - show foo
  register: result
  ignore_errors: yes

- assert: { that: result.failed }

- debug: msg="END cli/invalid.yaml on connection={{ ansible_connection }}"