Added modules
This commit is contained in:
parent
c53c931217
commit
59ec520742
646 changed files with 35182 additions and 0 deletions
33
modules/concat/spec/acceptance/quoted_paths_spec.rb
Normal file
33
modules/concat/spec/acceptance/quoted_paths_spec.rb
Normal file
|
@ -0,0 +1,33 @@
|
|||
require 'spec_helper_acceptance'
|
||||
|
||||
describe 'quoted paths' do
|
||||
before(:all) do
|
||||
shell('rm -rf "/tmp/concat test" /var/lib/puppet/concat')
|
||||
shell('mkdir -p "/tmp/concat test"')
|
||||
end
|
||||
|
||||
context 'path with blanks' do
|
||||
pp = <<-EOS
|
||||
concat { '/tmp/concat test/foo':
|
||||
}
|
||||
concat::fragment { '1':
|
||||
target => '/tmp/concat test/foo',
|
||||
content => 'string1',
|
||||
}
|
||||
concat::fragment { '2':
|
||||
target => '/tmp/concat test/foo',
|
||||
content => 'string2',
|
||||
}
|
||||
EOS
|
||||
|
||||
it 'applies the manifest twice with no stderr' do
|
||||
expect(apply_manifest(pp, :catch_failures => true).stderr).to eq("")
|
||||
expect(apply_manifest(pp, :catch_changes => true).stderr).to eq("")
|
||||
end
|
||||
|
||||
describe file('/tmp/concat test/foo') do
|
||||
it { should be_file }
|
||||
it { should contain "string1\nsring2" }
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue