Project

General

Profile

« Previous | Next » 

Revision 837bfccb

Added by Greg Petras over 9 years ago

fixes #8942 - ability to override tftp root parameter

Fixes GH-138

View differences:

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