Saltstack Official Apt-Cacher Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
563B

  1. # frozen_string_literal: true
  2. control 'AptCacherNG configuration' do
  3. title 'should match desired lines'
  4. describe file('/etc/apt-cacher-ng/zzz_acng.conf') do
  5. # Default config
  6. its('content') { should include 'BindAddress: 0.0.0.0' }
  7. # Custom config
  8. its('content') { should include 'Port: 9999' }
  9. end
  10. describe file('/etc/apt/apt.conf.d/80proxy') do
  11. # Default config
  12. its('content') { should include 'Acquire::http::Proxy "http://localhost:9999";' }
  13. its('content') { should include 'Acquire::https::Proxy "DIRECT";' }
  14. end
  15. end