Code Review
/
puppet-modules
/
puppetlabs-apt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Writing proxy configuration in apt.conf.d/01proxy.
[puppet-modules/puppetlabs-apt.git]
/
spec
/
acceptance
/
apt_spec.rb
diff --git
a/spec/acceptance/apt_spec.rb
b/spec/acceptance/apt_spec.rb
index 84b7f88281c1f6b7deda07779220f194ef4f200d..f89976e4000cbbf53dda2340c5159695b52c7dc0 100644
(file)
--- a/
spec/acceptance/apt_spec.rb
+++ b/
spec/acceptance/apt_spec.rb
@@
-75,10
+75,13
@@
describe 'apt class', :unless => UNSUPPORTED_PLATFORMS.include?(fact('osfamily')
apply_manifest(pp, :catch_failures => true)
end
apply_manifest(pp, :catch_failures => true)
end
- describe file('/etc/apt/apt.conf.d/proxy') do
+ describe file('/etc/apt/apt.conf.d/
01
proxy') do
it { should be_file }
it { should contain 'Acquire::http::Proxy "http://localhost:7042\";' }
end
it { should be_file }
it { should contain 'Acquire::http::Proxy "http://localhost:7042\";' }
end
+ describe file('/etc/apt/apt.conf.d/proxy') do
+ it { should_not be_file }
+ end
end
context 'purge_sources' do
end
context 'purge_sources' do
@@
-117,10
+120,13
@@
describe 'apt class', :unless => UNSUPPORTED_PLATFORMS.include?(fact('osfamily')
apply_manifest(pp, :catch_failures => true)
end
apply_manifest(pp, :catch_failures => true)
end
- describe file('/etc/apt/apt.conf.d/proxy') do
+ describe file('/etc/apt/apt.conf.d/
01
proxy') do
it { should be_file }
it { should contain 'Acquire::http::Proxy "http://localhost:7042\";' }
end
it { should be_file }
it { should contain 'Acquire::http::Proxy "http://localhost:7042\";' }
end
+ describe file('/etc/apt/apt.conf.d/proxy') do
+ it { should_not be_file }
+ end
end
context 'purge_sources' do
end
context 'purge_sources' do