Fix rsyslog permission error in github ubuntu tests from apparmor (#15717)

* Add test to detect rsyslog config problems

* Get dmesg output

* Disable apparmor for rsyslogd
This commit is contained in:
Alan Rominger
2025-02-05 08:38:55 -05:00
committed by GitHub
parent c2e5425d93
commit 26346d237d
2 changed files with 18 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
import os
RSYSLOG_CONFIG = '/var/lib/awx/rsyslog/rsyslog.conf'
def test_rsyslog_config_readable():
with open(RSYSLOG_CONFIG, 'r') as f:
content = f.read()
assert '/var/lib/awx/rsyslog' in content
assert oct(os.stat(RSYSLOG_CONFIG).st_mode) == '0o100640'