Skip to content

Commit a098797

Browse files
author
jordanbreen28
committed
(CONT-792) - Temp Acceptance Fix
1 parent c12e53c commit a098797

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

spec/spec_helper_acceptance_local.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,17 @@ def unindent
1616
RSpec.configure do |c|
1717
c.before :suite do
1818
install_dependencies
19+
turn_off_strict_error
1920
end
2021
end
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\nstrict_variables=false' >> /etc/puppetlabs/puppet/puppet.conf")
28+
end
29+
2230
def 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')

0 commit comments

Comments
 (0)