mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00: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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user