2014-01-06 23:39:48 +01:00
|
|
|
require 'spec_helper_acceptance'
|
2013-10-02 18:42:56 +02:00
|
|
|
|
|
|
|
describe 'apt class' do
|
|
|
|
|
|
|
|
context 'default parameters' do
|
|
|
|
# Using puppet_apply as a helper
|
|
|
|
it 'should work with no errors' do
|
|
|
|
pp = <<-EOS
|
|
|
|
class { 'apt': }
|
|
|
|
EOS
|
|
|
|
|
|
|
|
# Run it twice and test for idempotency
|
2014-01-06 23:39:48 +01:00
|
|
|
apply_manifest(pp, :catch_failures => true)
|
|
|
|
apply_manifest(pp, :catch_failures => true)
|
2013-10-02 18:42:56 +02:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|