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

- name: test bad condition
  nxos_command:
    commands:
      - show version
    wait_for:
      - "result[0].header_str contains foo"
    retries: 1
    provider: "{{ nxapi }}"
  register: result
  ignore_errors: yes

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

- debug: msg="END nxapi/timeout.yaml"