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
16
16
RSpec . configure do |c |
17
17
c . before :suite do
18
18
install_dependencies
19
+ turn_off_strict_error
19
20
end
20
21
end
21
22
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
+
22
30
def export_locales ( locale )
23
31
LitmusHelper . instance . run_shell ( 'echo export PATH="/opt/puppetlabs/bin:$PATH" > ~/.bashrc' )
24
32
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