ansible/test/integration/targets/eos_eapi/tests/cli/badtransport.1
Peter Sprygada 16a39639f5 fixes minor bugs in eos_eapi module (#21925)
* module will now check protocol running state before return
* warns on config argument no longer being needed
* lots of integration test cases updated
* updates unit and integration test cases for state check

fixes #21908
2017-02-25 17:18:46 -05:00

16 lines
382 B
Groff

- debug: msg="START CLI/BADTRANSPORT.YAML"
- name: Expect transport other than cli to fail
eos_eapi:
provider: "{{ eapi }}"
register: eos_eapi_output
connection: local
ignore_errors: yes
- debug: var=eos_eapi_output
when: debug
- assert:
that: eos_eapi_output.failed and eos_eapi_output.msg |search('transport')
- debug: msg="START CLI/BADTRANSPORT.YAML"