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

- name: Sending transport other than cli should fail
  nxos_file_copy:
    local_file: "./network-integration.cfg"
    file_system: "bootflash:"
    connect_ssh_port: "{{ ansible_ssh_port }}"
    provider: "{{ nxapi }}"
  register: result
  ignore_errors: yes

- assert:
     that:
        - result.failed and result.msg is search('Connection type must be <network_cli>')

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