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

View file

@ -6,7 +6,7 @@
commands:
- show version
- show interfaces GigabitEthernet 0/0
authorize: yes
provider: "{{ cli }}"
wait_for:
- "result[0] contains 'Description: Foo'"
register: result

View file

@ -6,7 +6,7 @@
commands:
- show version
- show interface loopback 888
authorize: yes
provider: "{{ cli }}"
wait_for:
- "result[0] contains Cisco"
- "result[1] contains Loopback888"

View file

@ -4,7 +4,7 @@
- name: run invalid command
ios_command:
commands: show foo
authorize: yes
provider: "{{ cli }}"
register: result
ignore_errors: yes
@ -17,7 +17,7 @@
commands:
- show version
- show foo
authorize: yes
provider: "{{ cli }}"
register: result
ignore_errors: yes

View file

@ -5,7 +5,7 @@
ios_command:
commands:
- show version
authorize: yes
provider: "{{ cli }}"
register: result
- assert:
@ -18,7 +18,7 @@
commands:
- show version
- show interfaces
authorize: yes
provider: "{{ cli }}"
register: result
- assert:

View file

@ -5,7 +5,7 @@
ios_command:
commands:
- show version
authorize: yes
provider: "{{ cli }}"
wait_for:
- "result[0] contains bad_value_string"
register: result