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

@ -4,12 +4,12 @@
- name: Make sure LLDP is not running before tests
ios_config:
lines: no lldp run
authorize: yes
provider: "{{ cli }}"
- name: Enable LLDP service
ios_lldp:
state: present
authorize: yes
provider: "{{ cli }}"
register: result
- assert:
@ -20,7 +20,7 @@
- name: Enable LLDP service again (idempotent)
ios_lldp:
state: present
authorize: yes
provider: "{{ cli }}"
register: result
- assert:
@ -30,7 +30,7 @@
- name: Disable LLDP service
ios_lldp:
state: absent
authorize: yes
provider: "{{ cli }}"
register: result
- assert:
@ -41,7 +41,7 @@
- name: Disable LLDP service (idempotent)
ios_lldp:
state: absent
authorize: yes
provider: "{{ cli }}"
register: result
- assert: