]> review.fuel-infra Code Review - puppet-modules/puppetlabs-apt.git/commitdiff
Add a check for Puppet version to task helper
authorWill Meek <william.meek@puppet.com>
Thu, 9 Nov 2017 18:09:04 +0000 (18:09 +0000)
committerWill Meek <william.meek@puppet.com>
Mon, 13 Nov 2017 14:32:35 +0000 (14:32 +0000)
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.

spec/spec_helper_acceptance.rb

index 1160438d9a0236981f8c0c230e930448b5871eec..e9d51bfd11c60c4d38b5861b29a9ffefd6a1169f 100644 (file)
@@ -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