Skip to content

Commit

Permalink
test: add tests for preserveFQDN, max_message_size
Browse files Browse the repository at this point in the history
add tests for logging_max_message_size and logging_preserve_fqdn

Signed-off-by: Rich Megginson <[email protected]>
  • Loading branch information
richm committed Nov 7, 2023
1 parent fc6de07 commit e1415e3
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/tests_relp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
__test_relp_server1: /etc/rsyslog.d/11-input-relp-relp_server1.conf
__test_relp_client0: /etc/rsyslog.d/31-output-relp-relp_client0.conf
__test_relp_client1: /etc/rsyslog.d/31-output-relp-relp_client1.conf
__test_relp_global: /etc/rsyslog.d/00-global.conf
logging_max_message_size: 16384
logging_preserve_fqdn: true

tasks:
# TEST CASE 0
Expand Down Expand Up @@ -176,6 +179,20 @@
failed_when: __result.stdout != "1"
# yamllint enable rule:line-length

- name: Check maxDataSize is logging_max_message_size
command: >-
grep -c 'maxDataSize="{{ logging_max_message_size }}"'
{{ __test_relp_server0 }}
changed_when: false
register: __result
failed_when: __result.stdout != "1"

- name: Check preserveFQDN is on
command: grep -c 'preserveFQDN="on"' {{ __test_relp_global }}
changed_when: false
register: __result
failed_when: __result.stdout != "1"

- name: Check ports managed by firewall and selinux
include_tasks: tasks/check_firewall_selinux.yml

Expand Down

0 comments on commit e1415e3

Please sign in to comment.