mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
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:
parent
d7d9e40dd1
commit
f3337e1fba
49 changed files with 240 additions and 243 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue