Browse Source

test(inpsec): test apt-cacher client config

tags/v0.7.0
Nicolas Rodriguez 5 years ago
parent
commit
81bb9db914
2 changed files with 7 additions and 0 deletions
  1. +1
    -0
      kitchen.yml
  2. +6
    -0
      test/integration/default/controls/config_spec.rb

+ 1
- 0
kitchen.yml View File

@@ -155,6 +155,7 @@ suites:
base:
'*':
- apt-cacher.ng.server
- apt-cacher.ng.client
pillars:
top.sls:
base:

+ 6
- 0
test/integration/default/controls/config_spec.rb View File

@@ -8,4 +8,10 @@ control 'AptCacherNG configuration' do
# 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

Loading…
Cancel
Save