36 lines
739 B
Ruby
36 lines
739 B
Ruby
require 'spec_helper_acceptance'
|
|
|
|
describe 'apt::builddep' do
|
|
|
|
context 'reset' do
|
|
it 'removes packages' do
|
|
shell('apt-get -y remove glusterfs-server')
|
|
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 { 'glusterfs-server': }
|
|
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 glusterfs-server')
|
|
shell('apt-get -y remove g++')
|
|
end
|
|
end
|
|
|
|
end
|