From: Will Meek Date: Thu, 9 Nov 2017 18:09:04 +0000 (+0000) Subject: Add a check for Puppet version to task helper X-Git-Tag: 4.4.0~3 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=e84c74a850378ed00bbea995def1d16c4e80c0f7;p=puppet-modules%2Fpuppetlabs-apt.git Add a check for Puppet version to task helper This commit will add a check for Puppet version being 5 or greater around the task test helper. This ensures that is it not attempted pre-task versions of puppet. --- diff --git a/spec/spec_helper_acceptance.rb b/spec/spec_helper_acceptance.rb index 1160438..e9d51bf 100644 --- a/spec/spec_helper_acceptance.rb +++ b/spec/spec_helper_acceptance.rb @@ -88,6 +88,6 @@ RSpec.configure do |c| # Configure all nodes in nodeset c.before :suite do - run_puppet_access_login(user: 'admin') if pe_install? + run_puppet_access_login(user: 'admin') if pe_install? && puppet_version =~ %r{(5\.\d\.\d)} end end