Merge pull request #227 from mhaskel/moar_test_fixes
Windows and solaris fixes
This commit is contained in:
commit
9948d04a8f
4 changed files with 11 additions and 4 deletions
|
@ -13,7 +13,7 @@ when 'windows'
|
||||||
username = 'Administrator'
|
username = 'Administrator'
|
||||||
groupname = 'Administrators'
|
groupname = 'Administrators'
|
||||||
scriptname = 'concatfragments.rb'
|
scriptname = 'concatfragments.rb'
|
||||||
when 'solaris'
|
when 'Solaris'
|
||||||
username = 'root'
|
username = 'root'
|
||||||
groupname = 'root'
|
groupname = 'root'
|
||||||
scriptname = 'concatfragments.rb'
|
scriptname = 'concatfragments.rb'
|
||||||
|
|
|
@ -59,7 +59,9 @@ describe 'concat ensure_newline parameter' do
|
||||||
|
|
||||||
describe file("#{basedir}/file") do
|
describe file("#{basedir}/file") do
|
||||||
it { should be_file }
|
it { should be_file }
|
||||||
it { should contain "1\n2\n" }
|
it("should contain 1\n2\n", :unless => (fact('osfamily') == 'Solaris')) {
|
||||||
|
should contain "1\n2\n"
|
||||||
|
}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -36,7 +36,9 @@ describe 'quoted paths' do
|
||||||
|
|
||||||
describe file("#{basedir}/concat test/foo") do
|
describe file("#{basedir}/concat test/foo") do
|
||||||
it { should be_file }
|
it { should be_file }
|
||||||
it { should contain "string1\nsring2" }
|
it("should contain string1\nstring2", :unless => (fact('osfamily') == 'Solaris')) {
|
||||||
|
should contain "string1\nstring2"
|
||||||
|
}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -25,8 +25,11 @@ RSpec.configure do |c|
|
||||||
# Install module and dependencies
|
# Install module and dependencies
|
||||||
hosts.each do |host|
|
hosts.each do |host|
|
||||||
on host, "mkdir -p #{host['distmoduledir']}/concat"
|
on host, "mkdir -p #{host['distmoduledir']}/concat"
|
||||||
|
result = on host, "echo #{host['distmoduledir']}/concat"
|
||||||
|
target = result.raw_output.chomp
|
||||||
|
|
||||||
%w(files lib manifests metadata.json).each do |file|
|
%w(files lib manifests metadata.json).each do |file|
|
||||||
scp_to host, "#{proj_root}/#{file}", "#{host['distmoduledir']}/concat"
|
scp_to host, "#{proj_root}/#{file}", target
|
||||||
end
|
end
|
||||||
#copy_module_to(host, :source => proj_root, :module_name => 'concat')
|
#copy_module_to(host, :source => proj_root, :module_name => 'concat')
|
||||||
on host, puppet('module','install','puppetlabs-stdlib'), { :acceptable_exit_codes => [0,1] }
|
on host, puppet('module','install','puppetlabs-stdlib'), { :acceptable_exit_codes => [0,1] }
|
||||||
|
|
Loading…
Reference in a new issue