From e84c74a850378ed00bbea995def1d16c4e80c0f7 Mon Sep 17 00:00:00 2001 From: Will Meek Date: Thu, 9 Nov 2017 18:09:04 +0000 Subject: [PATCH] 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. --- spec/spec_helper_acceptance.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.32.3