79352f4da6
Revert validation of the target param as an absolute path and allow it to be an arbitrary string. This is so the concat { <foo>: path => ... } concat::fragment { ...: target => <foo> } association may be symbolic as long as concat path param is specified. This should resolve the symbolic name regression introduced in: https://github.com/puppetlabs/puppetlabs-concat/commit/eaf84079
35 lines
712 B
Ruby
35 lines
712 B
Ruby
require 'spec_helper_system'
|
|
|
|
describe 'symbolic name' do
|
|
pp="
|
|
concat { 'not_abs_path':
|
|
path => '/tmp/file',
|
|
}
|
|
|
|
concat::fragment { '1':
|
|
target => 'not_abs_path',
|
|
content => '1',
|
|
order => '01',
|
|
}
|
|
|
|
concat::fragment { '2':
|
|
target => 'not_abs_path',
|
|
content => '2',
|
|
order => '02',
|
|
}
|
|
"
|
|
|
|
context puppet_apply(pp) do
|
|
its(:stderr) { should be_empty }
|
|
its(:exit_code) { should_not == 1 }
|
|
its(:refresh) { should be_nil }
|
|
its(:stderr) { should be_empty }
|
|
its(:exit_code) { should be_zero }
|
|
end
|
|
|
|
describe file('/tmp/file') do
|
|
it { should be_file }
|
|
it { should contain '1' }
|
|
it { should contain '2' }
|
|
end
|
|
end
|