mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-09 06:40:03 -07:00
nxos_logging new feature - remote logging (#41237)
* Added feature - Remote Logging + More tests * Fixed Shippable Errors * Fixes - new feature version added error
This commit is contained in:
parent
da0f58787e
commit
ed5a0f2d9c
2 changed files with 93 additions and 17 deletions
|
@ -98,6 +98,27 @@
|
|||
|
||||
- assert: *false
|
||||
|
||||
- name: Configure Remote Logging
|
||||
nxos_logging: &rlog
|
||||
dest: server
|
||||
remote_server: test-syslogserver.com
|
||||
facility: auth
|
||||
dest_level: 1
|
||||
state: present
|
||||
provider: "{{ connection }}"
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- 'result.changed == true'
|
||||
- '"logging server test-syslogserver.com 1 facility auth" in result.commands'
|
||||
|
||||
- name: Configure Remote Logging (idempotent)
|
||||
nxos_logging: *rlog
|
||||
register: result
|
||||
|
||||
- assert: *false
|
||||
|
||||
- name: remove logging as collection tearDown
|
||||
nxos_logging: &agg
|
||||
aggregate:
|
||||
|
@ -106,6 +127,7 @@
|
|||
- { dest: monitor, dest_level: 3 }
|
||||
- { dest: logfile, dest_level: 1, name: test }
|
||||
- { facility: daemon, facility_level: 4 }
|
||||
- { dest: server, remote_server: test-syslogserver.com, facility: auth, dest_level: 1 }
|
||||
provider: "{{ connection }}"
|
||||
state: absent
|
||||
register: result
|
||||
|
@ -117,6 +139,7 @@
|
|||
- '"no logging level daemon" in result.commands'
|
||||
- '"no logging monitor" in result.commands'
|
||||
- '"no logging module" in result.commands'
|
||||
- '"no logging server test-syslogserver.com" in result.commands'
|
||||
|
||||
- name: remove aggregate logging (idempotent)
|
||||
nxos_logging: *agg
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue