summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/enos_command/tests/cli/invalid.yaml
blob: 1276c7c369d7377827d9271f11b2f95487ed6abd (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/invalid.yaml"

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

- assert:
    that:
      - "result.failed"

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

- assert:
    that:
      - "result.failed"
  ignore_errors: true

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