2016-08-03 17:18:24 +00:00
|
|
|
if os[:name] == 'ubuntu'
|
2015-10-23 20:14:37 +00:00
|
|
|
|
|
|
|
describe apt('ppa:nginx/stable') do
|
|
|
|
it { should exist }
|
|
|
|
it { should be_enabled }
|
|
|
|
end
|
|
|
|
|
|
|
|
describe apt('nginx/stable') do
|
|
|
|
it { should exist }
|
|
|
|
it { should be_enabled }
|
|
|
|
end
|
|
|
|
|
|
|
|
describe apt('http://ppa.launchpad.net/nginx/stable/ubuntu') do
|
|
|
|
it { should exist }
|
|
|
|
it { should be_enabled }
|
|
|
|
end
|
|
|
|
|
|
|
|
describe apt('https://deb.nodesource.com/node_4.x/dists/precise/') do
|
|
|
|
it { should_not exist }
|
|
|
|
it { should_not be_enabled }
|
|
|
|
end
|
|
|
|
|
2016-11-04 14:25:31 +00:00
|
|
|
describe apt('https://packages.chef.io/stable-apt') do
|
|
|
|
it { should exist }
|
|
|
|
it { should be_enabled }
|
|
|
|
end
|
|
|
|
|
2015-10-23 20:14:37 +00:00
|
|
|
elsif os[:family] == 'debian'
|
|
|
|
|
|
|
|
describe apt('http://nginx.org/packages/debian') do
|
|
|
|
it { should exist }
|
|
|
|
it { should be_enabled }
|
|
|
|
end
|
|
|
|
|
|
|
|
describe apt('https://deb.nodesource.com/node_4.x/dists/precise/') do
|
|
|
|
it { should_not exist }
|
|
|
|
it { should_not be_enabled }
|
|
|
|
end
|
|
|
|
|
2016-11-04 14:25:31 +00:00
|
|
|
describe apt('https://packages.chef.io/stable-apt') do
|
|
|
|
it { should exist }
|
|
|
|
it { should be_enabled }
|
|
|
|
end
|
2015-10-23 20:14:37 +00:00
|
|
|
end
|