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

@ -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