mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
ios aggregate and common argument support (#28316)
* ios aggregate spec validation * ios common argument for aggregate support
This commit is contained in:
parent
2e44d8913b
commit
403f6db53f
7 changed files with 201 additions and 108 deletions
|
@ -107,11 +107,27 @@
|
|||
- 'result.changed == true'
|
||||
- '"logging buffered 8000" in result.commands'
|
||||
|
||||
- name: Change logging parameters using aggregate
|
||||
ios_logging:
|
||||
aggregate:
|
||||
- { dest: console, level: notifications }
|
||||
- { dest: buffered, size: 9000 }
|
||||
authorize: yes
|
||||
provider: "{{ cli }}"
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- 'result.changed == true'
|
||||
- '"logging buffered 9000" in result.commands'
|
||||
- '"logging console notifications" in result.commands'
|
||||
|
||||
- name: remove logging as collection tearDown
|
||||
ios_logging:
|
||||
aggregate:
|
||||
- { dest: console, level: warnings, state: absent }
|
||||
- { dest: buffered, size: 8000, state: absent }
|
||||
- { dest: console, level: notifications }
|
||||
- { dest: buffered, size: 9000 }
|
||||
state: absent
|
||||
authorize: yes
|
||||
provider: "{{ cli }}"
|
||||
register: result
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue