Fix nxos_install_os test cases typo (#58825)

This should be ansible_connection, not connection_type. We can also
update local testing logic.

Remove nxos_install_os/tasks/network_local.yaml as it is nolonger used.

Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2019-07-10 09:41:54 -04:00 committed by Trishna Guha
parent c68bf5997f
commit 9e1b19e364
2 changed files with 3 additions and 21 deletions

View file

@ -1,12 +1,10 @@
---
# Upgrade using SSH
- include: network_cli.yaml
when: connection_type == 'network_cli'
- include: network_local.yaml
when: connection_type == 'cli_local'
when: ansible_connection == 'network_cli'
# Upgrade using NX-API
- include: httpapi.yaml
when: connection_type == 'httpapi'
when: ansible_connection == 'httpapi'
- include: nxapi.yaml
when: connection_type == 'nxapi_local'
when: ansible_connection == 'local'

View file

@ -1,16 +0,0 @@
---
- name: collect common test cases
find:
paths: "{{ role_path }}/tests/common"
patterns: "{{ testcase }}.yaml"
connection: local
register: test_cases
- name: set test_items
set_fact: test_items="{{ test_cases.files | map(attribute='path') | list }}"
- name: run test cases (ansible_connection=local transport=ssh)
include: "{{ test_case_to_run }} ansible_connection=local connection={{ cli }}"
with_items: "{{ test_items }}"
loop_control:
loop_var: test_case_to_run