Project

General

Profile

« Previous | Next » 

Revision 359a604f

Added by Ivan Necas about 10 years ago

Update puppet modules

View differences:

modules/apt/spec/acceptance/apt_ppa_spec.rb
require 'spec_helper_acceptance'
if fact('operatingsystem') == 'Ubuntu'
describe 'apt::ppa' do
describe 'apt::ppa', :unless => UNSUPPORTED_PLATFORMS.include?(fact('osfamily')) do
context 'reset' do
it 'removes ppa' do
......
end
end
context 'readding a removed ppa.' do
context 'reading a removed ppa.' do
it 'setup' do
shell('add-apt-repository -y ppa:raravena80/collectd5')
# This leaves a blank file
shell('add-apt-repository --remove ppa:raravena80/collectd5')
shell('echo > /etc/apt/sources.list.d/raravena80-collectd5-$(lsb_release -c -s).list')
end
it 'should readd it successfully' do
it 'should read it successfully' do
pp = <<-EOS
include '::apt'
apt::ppa { 'ppa:raravena80/collectd5': }
......
end
context 'options' do
context '-y' do
context '-y', :unless => default[:platform].match(/10\.04/) do
it 'works without failure' do
pp = <<-EOS
include '::apt'
......
context 'reset' do
it { shell('rm -rf /etc/apt/sources.list.d/canonical-kernel-team-ppa*', :acceptable_exit_codes => [0,1,2]) }
end
end
end

Also available in: Unified diff