|
|
|
|
|
|
|
|
|
|
|
# frozen_string_literal: true |
|
|
|
|
|
|
|
|
control 'AptCacherNG configuration' do |
|
|
control 'AptCacherNG configuration' do |
|
|
title 'should match desired lines' |
|
|
title 'should match desired lines' |
|
|
|
|
|
|
|
|
describe file('/etc/apt-cacher-ng/zzz_acng.conf') do |
|
|
describe file('/etc/apt-cacher-ng/zzz_acng.conf') do |
|
|
# Default config |
|
|
# Default config |
|
|
its('content') { should include "BindAddress: 0.0.0.0" } |
|
|
|
|
|
|
|
|
its('content') { should include 'BindAddress: 0.0.0.0' } |
|
|
|
|
|
|
|
|
# Custom config |
|
|
# Custom config |
|
|
its('content') { should include "Port: 9999" } |
|
|
|
|
|
|
|
|
its('content') { should include 'Port: 9999' } |
|
|
end |
|
|
end |
|
|
|
|
|
|
|
|
describe file('/etc/apt/apt.conf.d/80proxy') do |
|
|
describe file('/etc/apt/apt.conf.d/80proxy') do |