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
commit f3337e1fba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
49 changed files with 240 additions and 243 deletions

View file

@ -3,7 +3,7 @@
- ios_command:
commands: show version
authorize: yes
provider: "{{ cli }}"
register: show_version_result
- set_fact: management_interface=GigabitEthernet0/0
@ -16,7 +16,7 @@
ios_command:
commands:
- "show ip interface {{ management_interface }} | include Internet address"
authorize: yes
provider: "{{ cli }}"
register: show_ip_interface_result
- name: Extract the IP address from registered output
@ -25,14 +25,14 @@
- name: expected successful ping
ios_ping: &valid_ip
dest: '{{ management_ip }}'
authorize: yes
provider: "{{ cli }}"
register: esp
- name: unexpected unsuccessful ping
ios_ping: &invalid_ip
dest: '10.255.255.250'
timeout: 45
authorize: yes
provider: "{{ cli }}"
register: uup
ignore_errors: yes