Skip to content

Commit

Permalink
test(inpsec): test apt-cacher client config
Browse files Browse the repository at this point in the history
  • Loading branch information
n-rodriguez committed Oct 3, 2019
1 parent a20a724 commit 81bb9db
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions kitchen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ suites:
base:
'*':
- apt-cacher.ng.server
- apt-cacher.ng.client
pillars:
top.sls:
base:
Expand Down
6 changes: 6 additions & 0 deletions test/integration/default/controls/config_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,10 @@
# Custom config
its('content') { should include "Port: 9999" }
end

describe file('/etc/apt/apt.conf.d/80proxy') do
# Default config
its('content') { should include 'Acquire::http::Proxy "http://localhost:9999";' }
its('content') { should include 'Acquire::https::Proxy "DIRECT";' }
end
end

0 comments on commit 81bb9db

Please sign in to comment.