ios test changes (#35510)

* Fix over-byte

* Update ios tests to call `provider`

To continue to support testing `connection: local`

* Fix command dict handling in ios_user

* Clean up unit tests, too
This commit is contained in:
Nathaniel Case
2018-02-02 09:50:15 -05:00
committed by GitHub
parent d7d9e40dd1
commit f3337e1fba
49 changed files with 240 additions and 243 deletions

View File

@@ -5,12 +5,12 @@
ios_config:
lines: hostname switch
match: none
authorize: yes
provider: "{{ cli }}"
- name: configure hostname
ios_system:
hostname: foo
authorize: yes
provider: "{{ cli }}"
register: result
- assert:
@@ -20,7 +20,7 @@
- name: verify hostname
ios_system:
hostname: foo
authorize: yes
provider: "{{ cli }}"
register: result
- assert:
@@ -31,6 +31,6 @@
ios_config:
lines: "hostname {{ inventory_hostname }}"
match: none
authorize: yes
provider: "{{ cli }}"
- debug: msg="END cli/set_hostname.yaml on connection={{ ansible_connection }}"