summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authoromnom62 <75066712+omnom62@users.noreply.github.com>2026-08-27 23:00:19 +1000
committerGitHub <noreply@github.com>2026-08-27 16:00:19 +0300
commit657aabbfd2ea43a441447093ef9880716775ed16 (patch)
tree54799aa73fb8a9440c5116ac6106f5f8371b16ee /tests
parent4feeb7afe15182788c99392b2b401a6867eada88 (diff)
downloadrest.vyos-657aabbfd2ea43a441447093ef9880716775ed16.tar.gz
rest.vyos-657aabbfd2ea43a441447093ef9880716775ed16.zip
T8989: vyos logging global sit fix (#26)
* T8989: vyos_logging_global SIT fix
Diffstat (limited to 'tests')
-rw-r--r--tests/integration/targets/vyos_logging_global/tests/httpapi/rtt.yaml9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/integration/targets/vyos_logging_global/tests/httpapi/rtt.yaml b/tests/integration/targets/vyos_logging_global/tests/httpapi/rtt.yaml
index 8bea580..79eda11 100644
--- a/tests/integration/targets/vyos_logging_global/tests/httpapi/rtt.yaml
+++ b/tests/integration/targets/vyos_logging_global/tests/httpapi/rtt.yaml
@@ -27,7 +27,9 @@
assert:
that:
- gathered.gathered.console is defined
- - gathered.gathered.global is defined
+ - (gathered.gathered.console.facilities | selectattr('facility', 'eq', 'local7') | map(attribute='severity') | first) == 'err'
+ - gathered.gathered.global_params is defined
+ - (gathered.gathered.global_params.facilities | selectattr('facility', 'eq', 'cron') | map(attribute='severity') | first) == 'debug'
- name: RTT - Modify configuration
vyos.rest.vyos_logging_global:
@@ -51,8 +53,9 @@
assert:
that:
- gathered2.gathered.console is defined
- - gathered2.gathered.global is defined
- - gathered2.gathered.global.facilities.cron == "info"
+ - (gathered2.gathered.console.facilities | selectattr('facility', 'eq', 'local7') | map(attribute='severity') | first) == 'warning'
+ - gathered2.gathered.global_params is defined
+ - (gathered2.gathered.global_params.facilities | selectattr('facility', 'eq', 'cron') | map(attribute='severity') | first) == 'info'
always:
- include_tasks: _remove_config.yaml