puppetlabs-apache icon indicating copy to clipboard operation
puppetlabs-apache copied to clipboard

Clean up SELinux handling in acceptance testing.

Open ekohl opened this issue 3 years ago • 0 comments

This attempts to unify SELinux handling in the tests. It moves the package installation to the acceptance spec helper to reduce duplication. It then makes the set_apache_defaults line idempotent and restorecon_apache correctly chained. This works around PUP-10548 which is that Puppet doesn't reload file contexts within a run. That means it must first create the file(s) and then run restorecon to get correct contexts.

ekohl avatar Sep 22 '22 09:09 ekohl