Bladeren bron

test(inpsec): test apt-cacher client config

tags/v0.7.0
Nicolas Rodriguez 5 jaren geleden
bovenliggende
commit
81bb9db914
2 gewijzigde bestanden met toevoegingen van 7 en 0 verwijderingen
  1. +1
    -0
      kitchen.yml
  2. +6
    -0
      test/integration/default/controls/config_spec.rb

+ 1
- 0
kitchen.yml Bestand weergeven

@@ -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 Bestand weergeven

@@ -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

Laden…
Annuleren
Opslaan