2017-04-19 18:12:04 +02:00
|
|
|
require 'net/http'
|
|
|
|
require 'uri'
|
|
|
|
|
|
|
|
require 'serverspec'
|
|
|
|
set :backend, :exec
|
|
|
|
|
|
|
|
describe file("/etc/apt/sources.list.d/backports.list") do
|
|
|
|
it { should be_file }
|
|
|
|
end
|
|
|
|
|
2017-04-19 18:19:15 +02:00
|
|
|
describe file("/etc/apt/preferences.d/0-backports-defaults") do
|
2017-04-19 18:12:04 +02:00
|
|
|
it { should be_file }
|
|
|
|
end
|
|
|
|
|
|
|
|
describe command("grep 'main contrib non-free' /etc/apt/sources.list.d/backports.list") do
|
2017-04-20 11:08:01 +02:00
|
|
|
its(:stdout) { should_not be_empty }
|
2017-04-19 18:12:04 +02:00
|
|
|
its(:exit_status) { should eq 0 }
|
|
|
|
end
|
|
|
|
|
|
|
|
describe command("grep 'main contrib non-free' /etc/apt/sources.list") do
|
2017-04-20 11:08:01 +02:00
|
|
|
its(:stdout) { should_not be_empty }
|
2017-04-19 18:12:04 +02:00
|
|
|
its(:exit_status) { should eq 0 }
|
|
|
|
end
|