Skip to content

Commit

Permalink
Merge pull request #12590 from Mab879/fix_automatus_sanity
Browse files Browse the repository at this point in the history
Make Automatus Sanity Pass
  • Loading branch information
vojtapolasek authored Nov 12, 2024
2 parents a1b1ffd + dc64896 commit 33a7ba2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/automatus-sanity.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
- name: Check One Rule
run: ./tests/automatus.py rule --remove-platforms --make-applicable-in-containers --logdir log_rule --datastream ssg-fedora-ds.xml --container ssg_test_suite package_sudo_installed
- name: Check One Rule - Ansible
run: ./tests/automatus.py rule --remove-platforms --make-applicable-in-containers --logdir log_rule_ansible --remediate-using ansible --datastream ssg-fedora-ds.xml --container ssg_test_suite package_sudo_installed
run: ./tests/automatus.py rule --remove-platforms --make-applicable-in-containers --logdir log_rule_ansible --remediate-using ansible --datastream ssg-fedora-ds.xml --container ssg_test_suite file_owner_etc_passwd
- name: Check Profile Mode
run: ./tests/automatus.py profile --remove-platforms --make-applicable-in-containers --logdir log_profile --datastream ssg-fedora-ds.xml --container ssg_test_suite test
- name: Check Combined Mode
Expand Down
4 changes: 4 additions & 0 deletions shared/templates/file_owner/tests/incorrect_owner.fail.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ if [ ! -f {{{ path }}} ]; then
mkdir -p "$(dirname '{{{ path }}}')"
touch {{{ path }}}
fi
if [ -L {{{ path }}} ]; then
rm {{{ path }}}
touch {{{ path }}}
fi
chown testuser_123 {{{ path }}}
{{% endif %}}
{{% endfor %}}

0 comments on commit 33a7ba2

Please sign in to comment.