Skip to content

Commit

Permalink
Add acceptance test to check for idempotency for memory plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
jskarpe committed Sep 27, 2016
1 parent d096b3e commit b8eb5a5
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions spec/acceptance/class_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,18 @@ class { 'collectd': }
it { should be_running }
end
end

context 'install memory plugin' do
it 'works idemptontently' do
pp = <<-EOS
class { '::collectd': }
class { '::collectd::plugin::memory': }
EOS

# Run it twice and test for idempotency
apply_manifest(pp, catch_failures: true)
apply_manifest(pp, catch_changes: true)
end
end
end

0 comments on commit b8eb5a5

Please sign in to comment.