---
- debug: msg="START nxapi/bad_operator.yaml"

- name: test bad operator
  nxos_command:
    commands:
      - show version
      - show interface mgmt0
    wait_for:
      - "result[1].TABLE_interface.ROW_interface.state foo up"
    provider: "{{ nxapi }}"
  register: result
  ignore_errors: yes

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

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