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
|
@ -9,21 +9,21 @@
|
|||
ios_config:
|
||||
lines:
|
||||
- no interface port-channel 20
|
||||
authorize: yes
|
||||
provider: "{{ cli }}"
|
||||
ignore_errors: yes
|
||||
|
||||
- name: setup - remove config used in test(part2)
|
||||
ios_config:
|
||||
lines:
|
||||
- no interface port-channel 5
|
||||
authorize: yes
|
||||
provider: "{{ cli }}"
|
||||
ignore_errors: yes
|
||||
|
||||
- name: setup - remove config used in test(part3)
|
||||
ios_config:
|
||||
lines:
|
||||
- no channel-group 20 mode active
|
||||
authorize: yes
|
||||
provider: "{{ cli }}"
|
||||
parents: "{{ item }}"
|
||||
loop:
|
||||
- interface GigabitEthernet0/1
|
||||
|
@ -33,7 +33,7 @@
|
|||
ios_linkagg: &create
|
||||
group: 20
|
||||
state: present
|
||||
authorize: yes
|
||||
provider: "{{ cli }}"
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
|
@ -56,7 +56,7 @@
|
|||
members:
|
||||
- GigabitEthernet0/1
|
||||
- GigabitEthernet0/2
|
||||
authorize: yes
|
||||
provider: "{{ cli }}"
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
|
@ -81,7 +81,7 @@
|
|||
mode: active
|
||||
members:
|
||||
- GigabitEthernet0/2
|
||||
authorize: yes
|
||||
provider: "{{ cli }}"
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
|
@ -102,7 +102,7 @@
|
|||
ios_linkagg: &remove
|
||||
group: 20
|
||||
state: absent
|
||||
authorize: yes
|
||||
provider: "{{ cli }}"
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
|
@ -123,7 +123,7 @@
|
|||
aggregate:
|
||||
- { group: 5 }
|
||||
- { group: 20, mode: active, members: ['GigabitEthernet0/1'] }
|
||||
authorize: yes
|
||||
provider: "{{ cli }}"
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
|
@ -146,21 +146,21 @@
|
|||
ios_config:
|
||||
lines:
|
||||
- no interface port-channel 20
|
||||
authorize: yes
|
||||
provider: "{{ cli }}"
|
||||
ignore_errors: yes
|
||||
|
||||
- name: teardown(part2)
|
||||
ios_config:
|
||||
lines:
|
||||
- no interface port-channel 5
|
||||
authorize: yes
|
||||
provider: "{{ cli }}"
|
||||
ignore_errors: yes
|
||||
|
||||
- name: teardown(part3)
|
||||
ios_config:
|
||||
lines:
|
||||
- no channel-group 20 mode active
|
||||
authorize: yes
|
||||
provider: "{{ cli }}"
|
||||
parents: "{{ item }}"
|
||||
loop:
|
||||
- interface GigabitEthernet0/1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue