File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -16,9 +16,17 @@ def unindent
1616RSpec . configure do |c |
1717 c . before :suite do
1818 install_dependencies
19+ turn_off_strict_error
1920 end
2021end
2122
23+ def turn_off_strict_error
24+ # this is only temporary fix until we finish adding support for puppet 8
25+ # strict=warning is defaulted on puppet versions below 8, whereas puppet 8 has strict=error by default
26+ # error is caused by 'onlyif_exists' in spec/acceptance/server/grant_spec.rb L78 (works when removed, but not what we want to test)
27+ LitmusHelper . instance . run_shell ( "echo 'strict=warning\n strict_variables=false' >> /etc/puppetlabs/puppet/puppet.conf" )
28+ end
29+
2230def export_locales ( locale )
2331 LitmusHelper . instance . run_shell ( 'echo export PATH="/opt/puppetlabs/bin:$PATH" > ~/.bashrc' )
2432 LitmusHelper . instance . run_shell ( 'echo export LC_ALL="C" > /etc/profile.d/my-custom.lang.sh' )
You can’t perform that action at this time.
0 commit comments