Skip to content

Commit

Permalink
Default test vardir to the aio paths for *nix systems
Browse files Browse the repository at this point in the history
  • Loading branch information
Morgan Haskel committed Jun 22, 2015
1 parent 8618076 commit f654561
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions spec/acceptance/concat_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,17 @@
groupname = 'system'
scriptname = 'concatfragments.rb'
vardir = default['puppetvardir']
if vardir == ''
vardir = '/opt/puppetlabs/puppet/cache'
end
when 'Darwin'
username = 'root'
groupname = 'wheel'
scriptname = 'concatfragments.rb'
vardir = default['puppetvardir']
if vardir == ''
vardir = '/opt/puppetlabs/puppet/cache'
end
when 'windows'
username = 'Administrator'
groupname = 'Administrators'
Expand All @@ -22,11 +28,17 @@
groupname = 'root'
scriptname = 'concatfragments.rb'
vardir = default['puppetvardir']
if vardir == ''
vardir = '/opt/puppetlabs/puppet/cache'
end
else
username = 'root'
groupname = 'root'
scriptname = 'concatfragments.rb'
vardir = default['puppetvardir']
if vardir == ''
vardir = '/opt/puppetlabs/puppet/cache'
end
end

describe 'basic concat test' do
Expand Down

0 comments on commit f654561

Please sign in to comment.