Code Review
/
puppet-modules
/
puppetlabs-apt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge pull request #336 from mhaskel/fix_acceptance_tests
[puppet-modules/puppetlabs-apt.git]
/
spec
/
acceptance
/
unattended_upgrade_spec.rb
diff --git
a/spec/acceptance/unattended_upgrade_spec.rb
b/spec/acceptance/unattended_upgrade_spec.rb
index a0349d40d7ca303e48c4229e47ed7a0cfed64302..09f4e2bed09888036c9c7f6f2b54dbfd9b6c5c85 100644
(file)
--- a/
spec/acceptance/unattended_upgrade_spec.rb
+++ b/
spec/acceptance/unattended_upgrade_spec.rb
@@
-1,6
+1,6
@@
require 'spec_helper_acceptance'
require 'spec_helper_acceptance'
-describe 'apt::unattended_upgrades class' do
+describe 'apt::unattended_upgrades class'
, :unless => UNSUPPORTED_PLATFORMS.include?(fact('osfamily'))
do
context 'defaults' do
it 'should work with no errors' do
pp = <<-EOS
context 'defaults' do
it 'should work with no errors' do
pp = <<-EOS
@@
-10,8
+10,8
@@
describe 'apt::unattended_upgrades class' do
# Attempted workaround for problems seen on debian with
# something holding the package database open.
# Attempted workaround for problems seen on debian with
# something holding the package database open.
-
#shell('killall -9 apt-get'
)
-
#shell('killall -9 dpkg'
)
+
shell('killall -9 apt-get', { :acceptable_exit_codes => [0,1] }
)
+
shell('killall -9 dpkg', { :acceptable_exit_codes => [0,1] }
)
apply_manifest(pp, :catch_failures => true)
end
apply_manifest(pp, :catch_failures => true)
end