-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix rsyslog permission error in github ubuntu tests from apparmor (#1…
…5717) * Add test to detect rsyslog config problems * Get dmesg output * Disable apparmor for rsyslogd
- Loading branch information
1 parent
c2e5425
commit 26346d2
Showing
2 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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' |