summaryrefslogtreecommitdiff
path: root/test/integration/targets/eos_command/tests/cli/bad_operator.yaml
blob: 3e40a3ba7e8f41e7e31d8ded799755ed69cd7f79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
---
- debug: msg="START cli/bad_operator.yaml"

- name: test bad operator
  eos_command:
    commands:
      - show version
      - show interfaces Management1 | json
    wait_for:
      - "result[1].interfaces.Management1.name foo Management"
    provider: "{{ cli }}"
  register: result
  ignore_errors: yes

- assert:
    that:
      - "result.failed == true"
      - "result.msg is defined"

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