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