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

- name: Sending transport other than cli should fail
  nxos_nxapi:
    enable_http: no
    enable_sandbox: no
    https_port: 9443
    provider: "{{ nxapi }}"
  register: result
  ignore_errors: yes

- assert:
     that:
        - result.failed and result.msg is search('Transport')

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