diff options
| -rw-r--r-- | changelogs/fragments/t8989_vyos_logging_global_sit_fix.yml | 3 | ||||
| -rw-r--r-- | tests/integration/targets/vyos_logging_global/tests/httpapi/rtt.yaml | 9 |
2 files changed, 9 insertions, 3 deletions
diff --git a/changelogs/fragments/t8989_vyos_logging_global_sit_fix.yml b/changelogs/fragments/t8989_vyos_logging_global_sit_fix.yml new file mode 100644 index 0000000..8766ef9 --- /dev/null +++ b/changelogs/fragments/t8989_vyos_logging_global_sit_fix.yml @@ -0,0 +1,3 @@ +--- +minor_changes: + - vyos_logging_global - Fix RTT integration test. 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 |
