mirror of
https://github.com/linux-system-roles/network.git
synced 2026-01-23 10:25:28 +00:00
Logs are now separed by severity level. Warnings and failures are the only logs that appear now on the output. All logs are saved into a new json parameter called "stderr" that is later shown on a different task. In case of failure, all logs are shown as output. Tests have been created and modified in order to assure that this feature works. Signed-off-by: Elvira Garcia Ruiz <elviragr@riseup.net>
12 lines
326 B
YAML
12 lines
326 B
YAML
# SPDX-License-Identifier: BSD-3-Clause
|
|
---
|
|
- name: Test executing the role with default parameters
|
|
hosts: all
|
|
roles:
|
|
- linux-system-roles.network
|
|
tasks:
|
|
- name: Test warning and info logs
|
|
assert:
|
|
that:
|
|
- "'warnings' not in __network_connections_result"
|
|
msg: "There are warnings"
|