diff --git a/.github/actions/run_awx_devel/action.yml b/.github/actions/run_awx_devel/action.yml index b7d11cf17d21..863a83987675 100644 --- a/.github/actions/run_awx_devel/action.yml +++ b/.github/actions/run_awx_devel/action.yml @@ -16,6 +16,14 @@ outputs: runs: using: composite steps: + - name: Disable apparmor for rsyslogd, first step + shell: bash + run: sudo ln -s /etc/apparmor.d/usr.sbin.rsyslogd /etc/apparmor.d/disable/ + + - name: Disable apparmor for rsyslogd, second step + shell: bash + run: sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.rsyslogd + - name: Build awx_devel image for running checks uses: ./.github/actions/awx_devel_image with: diff --git a/awx/main/tests/live/tests/test_devel_image.py b/awx/main/tests/live/tests/test_devel_image.py new file mode 100644 index 000000000000..a77039247cc3 --- /dev/null +++ b/awx/main/tests/live/tests/test_devel_image.py @@ -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'