Added modules
This commit is contained in:
parent
c53c931217
commit
59ec520742
646 changed files with 35182 additions and 0 deletions
36
modules/apt/spec/acceptance/apt_builddep_spec.rb
Normal file
36
modules/apt/spec/acceptance/apt_builddep_spec.rb
Normal file
|
@ -0,0 +1,36 @@
|
|||
require 'spec_helper_acceptance'
|
||||
|
||||
describe 'apt::builddep', :unless => UNSUPPORTED_PLATFORMS.include?(fact('osfamily')) do
|
||||
|
||||
context 'reset' do
|
||||
it 'removes packages' do
|
||||
shell('apt-get -y remove znc')
|
||||
shell('apt-get -y remove g++')
|
||||
end
|
||||
end
|
||||
|
||||
context 'apt::builddep' do
|
||||
it 'should work with no errors' do
|
||||
pp = <<-EOS
|
||||
include '::apt'
|
||||
apt::builddep { 'znc': }
|
||||
EOS
|
||||
|
||||
apply_manifest(pp, :catch_failures => true)
|
||||
end
|
||||
|
||||
describe 'should install g++ as a dependency' do
|
||||
describe package('g++') do
|
||||
it { should be_installed }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
context 'reset' do
|
||||
it 'removes packages' do
|
||||
shell('apt-get -y remove znc')
|
||||
shell('apt-get -y remove g++')
|
||||
end
|
||||
end
|
||||
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue