Revision 837bfccb
Added by Greg Petras over 9 years ago
spec/classes/foreman_proxy__config__spec.rb | ||
---|---|---|
]
|
||
end
|
||
end
|
||
|
||
context 'with custom tftp_root param' do
|
||
let :pre_condition do
|
||
'class {"foreman_proxy":
|
||
tftp_root => "/tftpboot",
|
||
}'
|
||
end
|
||
|
||
it 'should generate correct tftp.yml' do
|
||
content = subject.resource('file', '/etc/foreman-proxy/settings.d/tftp.yml').send(:parameters)[:content]
|
||
content.split("\n").reject { |c| c =~ /(^#|^$)/ }.should == [
|
||
'---',
|
||
':enabled: true',
|
||
':tftproot: /tftpboot',
|
||
':tftp_servername: 127.0.1.1',
|
||
]
|
||
end
|
||
end
|
||
|
||
end
|
||
|
||
context 'when log_level => DEBUG' do
|
Also available in: Unified diff
fixes #8942 - ability to override tftp root parameter
Fixes GH-138