Revision 359a604f
Added by Ivan Necas about 10 years ago
modules/apt/spec/acceptance/apt_spec.rb | ||
---|---|---|
require 'spec_helper_acceptance'
|
||
|
||
describe 'apt class' do
|
||
describe 'apt class', :unless => UNSUPPORTED_PLATFORMS.include?(fact('osfamily')) do
|
||
|
||
context 'reset' do
|
||
it 'fixes the sources.list' do
|
||
... | ... | |
pp = <<-EOS
|
||
class { 'apt':
|
||
proxy_host => 'localhost',
|
||
proxy_port => '8080',
|
||
proxy_port => '7042',
|
||
}
|
||
EOS
|
||
|
||
... | ... | |
|
||
describe file('/etc/apt/apt.conf.d/proxy') do
|
||
it { should be_file }
|
||
it { should contain 'Acquire::http::Proxy "http://localhost:8080\";' }
|
||
it { should contain 'Acquire::http::Proxy "http://localhost:7042\";' }
|
||
end
|
||
end
|
||
|
||
... | ... | |
pp = <<-EOS
|
||
class { 'apt':
|
||
proxy_host => 'localhost',
|
||
proxy_port => '8080',
|
||
proxy_port => '7042',
|
||
}
|
||
EOS
|
||
|
||
... | ... | |
|
||
describe file('/etc/apt/apt.conf.d/proxy') do
|
||
it { should be_file }
|
||
it { should contain 'Acquire::http::Proxy "http://localhost:8080\";' }
|
||
it { should contain 'Acquire::http::Proxy "http://localhost:7042\";' }
|
||
end
|
||
end
|
||
|
Also available in: Unified diff
Update puppet modules